I'm learning laravel, and having some initial hiccups with it. I've no prior experience with web development.
Laravel Framework version 5.1.19 (LTS)
I created a controller as:
I can see aboutController in Http->Controller folderphp artisan make:controller aboutController --plain
In the routes.php, I write as:
Code: Select all
Route::get('about', 'aboutController@index');
My index in aboutControllers looks like:
Code: Select all
public function index(){
return View::make('frontpages.about');
//return "hello"; -->nothing works
}
If I do not call any controller, and simply put it as:
Code: Select all
Route::get ('about',function(){
return view('frontpages.about');
});
If I change routes code to:
Code: Select all
Route::get('about', array ('uses'=>'aboutController@index'));
I'm unable to echo anything as I'm directed to 404 page.
1- How do I fix this?
2- How do write to laravel log present in storage->logs -> laravel.log ?
Please guide.