I am trying to learn laravel. I ran into a view issue. while I run the following code:
Route::get('/', function(){ return 'welcome'; });
It works great. But while I tried to use the view
Route::get('/', function(){ return view('welcome'); });
I get only a blank page. (welcome.balde.php page exists in the resources / views directory)
I also get problems during routing. such a code
Route::get('home', ' HomeController@index ');
I can not access the local host / laravel / public / home directory, it gives me an error that there is no directory or file that was not found. Instead, localhost / laravel / public / index.php / home works. I don’t know what the problem is. I am using php 5.4 and mysql 5.5
source share