It comes pre-loaded with...
- Bootstrap Sass 3.0
Laravel 5.4 introduces Mix, which is a replacement for Elixir built on top of Webpack.
- Change your .env file to accomodate sqlite:
php artisan migrate
- Uncomment the line referencing Bootstrap in app.scss
php artisan serve
You should be able to navigate to
localhost:8000 and see a basic welcome page.
You'll want to use Blade's handy
@include syntax to create sub-templates and otherwise organize your templates. For example, my boilerplate structure looks like this:
<html> @include('head') @include('navbar') <body> @yield('content') </body> </html>
The "head" file has basic meta tags and other content in the
<head> section, and then the basic layout of the page is included as necessary.
Laravel doesn't come with a page setup for you out-of-the-box; that means basic elements like
<head> aren't present and don't have all the handy metadata you might desire.
Fortunately there's some good projects to help you handle these needs.
laravel-meta allows you to set defaults for SEO-friendly meta data and set controller-specific settings as well.