This Is The Beginners guide For Creating web pages with Laravel .Laravel’s approach to building web content is flexible. As much or as little of Laravel can be used to create HTML. Laravel uses the filename.blade.php convention to state that the file should be parsed by the blade parser, which actually converts the file into plain PHP. The name blade was inspired by the .NET’s razor templating engine, so this may be familiar to someone who has used it. Laravel 5 provides a working demonstration of a form in the /resources/views/ directory. This view is shown when the /home route is requested and the user is not currently logged in. This form is obviously not created using the Laravel form methods.

The route is defined in the routes file as follows:

Route::get('home', 'HomeController@index');

The master template

This is the following app (or master) template:

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="/css/app.css" rel="stylesheet">

    <!-- Fonts -->
    <link href='//,300' rel='stylesheet' type='text/css'>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src=""></script>
        <script src=""></script>
    <nav class="navbarnavbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle Navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                <a class="navbar-brand" href="#">Laravel</a>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="navnavbar-nav">
                    <li><a href="/">Home</a></li>

                <ul class="navnavbar-navnavbar-right">
                    @if (Auth::guest())
                        <li><a href="{{%20route('auth.login')%20}}">Login</a></li>
                        <li><a href="/auth/register">Register</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ Auth::user()->name }} <span class="caret"></span></a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="/auth/logout">Logout</a></li>


    <!-- Scripts -->
    <script src="//"></script>
    <script src="//"></script>

The Laravel 5 master template is a standard HTML5 template with the following features:

  • If the browser is older than Internet Explorer 9:
    • Uses the HTML5 Shim from the CDN
    • Uses the Respond.js JavaScript code from the CDN to retrofit media queries and CSS3 features
  • Using @if (Auth::guest()), if the user is not authenticated, the login form is displayed; otherwise, the logout option is displayed
  • Twitter bootstrap 3.x is included in the CDN
  • The jQuery2.x is included in the CDN
  • Any template that extends this template can override the content section