Building your application

Creating your first site

Use the Artisan command to scaffold your site.

1php artisan make:site Fictionary

Read more about sites in the "Sites" section.

Layouts

In order to advantages of a lot of Strata's features you should include some Blade files from Strata by adding the three following includes:

  • @include('lego::frontend.head')
  • @include('lego::frontend.body')
  • @include('lego::frontend.end')
1<!doctype html>
2<html lang="en">
3<head>
4 // ...
5 
6 // Usually at the start of the HEAD section
7 @include('lego::frontend.head')
8 
9 // ...
10</head>
11<body>
12 // Usually before you yield out the main content
13 @include('lego::frontend.body')
14 
15 @yield('content')
16 
17 // ...
18 
19 // At the end of the body
20 @include('lego::frontend.end')
21</body>

Excluding views

You can exclude a view from being auto-included by an app by passing an array of views you want to not be included.

1@include('lego::frontend.head', ['exclude' => ['heap::script'])