0

every time I run this block

Route::get('myass',function(){

    return view("index");
});

It shows index file cannot be found but its already there any help?

1 Answer 1

1

Using method view you are trying to return parsed content of resources/views/index.blade.php or resources/views/index.php. It seems that you put your file into wrong directory or it has different extension.

2
  • no i rechecked it 3-4 times still showing this error Mar 29, 2015 at 17:09
  • Check that the webserver has at least read permissions on the file.
    – kalatabe
    Mar 30, 2015 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.