Ad

Blank Page On A Laravel Specific Route

- 1 answer

I know this is probably a newbie question, but I can't find any solution.

I have a specific route defined in my app/routes.php like this :

Route::get('videos', '[email protected]');

When my Laravel app is going to the 'videos' URL, I have just a blank page.

I don't know why, but nothing append. I've put some var_dump in my showMovies function, but nothing is on my page.

My showMovies function is really simple :

public function showMovies(){

    $movies = Movie::all();

    $params = array(
        "movies" => $movies
    );

    return View::make('front.videos', $params);

}

I've set debug to true and correct the permissions for storage writing, but I've got no logs.

Ad

Answer

I suspect that you have a folder in your public directory called videos. That can sometimes be a pain in the butt to debug.

Ad
source: stackoverflow.com
Ad