Commit d05d018f authored by Nicolas Widart's avatar Nicolas Widart

Setting theme on homecontroller

parent 0b7ab74c
...@@ -2,25 +2,22 @@ ...@@ -2,25 +2,22 @@
use Illuminate\Routing\Controller; use Illuminate\Routing\Controller;
class HomeController extends Controller { class HomeController extends Controller
{
/* public $theme;
|--------------------------------------------------------------------------
| Home Controller
|--------------------------------------------------------------------------
|
| Controller methods are called when a request enters the application
| with their assigned URI. The URI a method responds to may be set
| via simple annotations. Here is an example to get you started!
|
*/
/** public function __construct()
* @Get("/") {
*/ $this->theme = 'demo';
public function index() }
{
return view('hello'); /**
} * @Get("/")
*/
public function index()
{
return view('index');
}
} }
<?php
Route::get('/', 'HomeController@index');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment