InvalidArgumentException View not found in Laravel 8

Ask New Question
  • InvalidArgumentException View not found in Laravel 8

    I am getting this error

    InvalidArgumentException

    View [expenses.list] not found.

     

    expenses.list was not found.

    Are you sure the view exists and is a .blade.php file?

     

    Everything is okay from my side and here are the detail

    Laravel 8 / PHP 7.3 / MySql 8

    My route is working properly and in the controller I have simply put this line.

    return view('expenses.list');
    

    and the blade file is presented in the view/expenses/list.blade.php

    So why is this not finding the file? What is wrong with it?

    Reply
1 Replies Reply
  • Author
    Replies
  • |  

    If you are new to the Laravel then make sure you are not creating the blade files under app folder, it should be under the resources folder. This is a common mistake by the newbies otherwise t should work fine.

    There are two view in the Laravel 8 in the App/views and another is Resources/views. Blade comes under Resources/views folder. Hope it will solve your issue.

    Reply
Viewing 1 replies (of 1 total)
Reply To: InvalidArgumentException View not found in Laravel 8
Your information: