Question

simply i tried to use the blade template system which comes with laravel framework but its not working for me in views folder i have another folder called dashboard and have a simple view file called hello inside the dashboard folder my routes file have this simple rule

Route::get('/', function()
{
    return View::make('dashboard.hello');
});

if the view file have the name hello.php it works fine and the view loaded without problem .
when i renamed the file to hello.blade.php the gives error and throw exception

ErrorException

mkdir(): No such file or directory (View: C:\xampp\htdocs\larvel\app\views\dashboard\hello.blade.php)

No correct solution

OTHER TIPS

Try with a / to separate directory

Route::get('/', function()
{
    return View::make('dashboard/hello');
});

It works for me on linux.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top