Skip to content

Welcome page

JP Barbosa edited this page Mar 11, 2016 · 4 revisions

Welcome Page

Change welcome view
nano resources/views/welcome.blade.php
@extends($layout)

@section('content')
    <div class="jumbotron">
        <h1>Laravel Apz</h1>
        <p>The guide to build a Laravel 5.2 app from a to z.</p>
        <p>
            <a href="https://github.com/jp7internet/laravel-apz" role="button" class="btn btn-lg btn-primary">View On GitHub</a>
        </p>
    </div>
@endsection
Check if there is welcome route
nano app/Http/routes.php
Route::get('/', function () {
    return view('welcome');
});
Run the server
php artisan serve
Check the welcome page
open http://localhost:8000/
Add welcome to git
git add .
git commit -m "Add welcome page"
Next step: Ajax CRUD