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 203<br />

.<br />

you would expect via debugging information or backtraces.<br />

http://www.reddit.com/r/PHP/comments/1qm8e3/tutorial_multisites_with_laravel_4/cdecd88<br />

If you would rather determine the current environment via a server configuration property; you can<br />

pass a callback to the detectEnvironment() method:<br />

1 $env = $app->detectEnvironment(function()<br />

2 {<br />

3 return Input::server("environment", "development");<br />

4 });<br />

.<br />

This was extracted from /bootstrap/start.php.<br />

Clean out the app/views folder and create www and admin folders, each with their own<br />

layout.blade.php and index/index.blade.php files.<br />

1 <br />

2 <br />

3 <br />

4 <br />

5 Laravel 4 Multisites<br />

6 <br />

7 <br />

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

9 <br />

10 <br />

.<br />

This file should be saved as app/views/www/layout.blade.php.

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

Saved successfully!

Ooh no, something went wrong!