I just started learning laravel and in the tutorial I found, it told me to edit the routes.php file, but when I replace the code in the file with new code I get the message "Whoops, looks like something went wrong." Also in the video the routes.php file is located in the Http folder, but I don't have this folder in my directories. Instead routes.php is located in the app folder. Is this supposed to be the same fil
If I replace the following code in routes.php:
<?php
Route::get('/', function()
{
return View::make('hello');
});
with this code:
<?php
get('songs', 'SongsController@index');'
I get the whoops error.
Also in the video the routes.php file is located in the Http folder, but I don't have this folder in my directories. Instead routes.php is located in the app folder. Is this supposed to be the same file?
I've been stuck on this for a couple days now so any help is appreciated. Screenshot attached of my app's directories/file structure.