03.12.2015 Views

laravel4cookbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Multisites 204<br />

1 @extends("layout")<br />

2 @section("content")<br />

3 Welcome to our website!<br />

4 @stop<br />

.<br />

This file should be saved as app/views/www/index/index.blade.php.<br />

1 <br />

2 <br />

3 <br />

4 <br />

5 Laravel 4 Multisites—Admin<br />

6 <br />

7 <br />

8 @yield("content")<br />

9 <br />

10 <br />

.<br />

This file should be saved as app/views/admin/layout.blade.php.<br />

1 @extends("layout")<br />

2 @section("content")<br />

3 Please log in to use the admin.<br />

4 @stop<br />

.<br />

This file should be saved as app/views/admin/index/index.blade.php.<br />

Let’s also prepare the routes and controllers for the rest of the tutorial, by updating both:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!