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
5 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.

    + 0
    Reply
    |  

    hello,

    InvalidArgumentException

    View [viewAgbeniStock] not found.
    my view is under resource/view
    and I’m having a similar error. I am using Laravel 8 Jetstream
    • This reply was modified 5 months ago by PK.
    + 0
    Reply
    |  

    Definitely this is an issue of Typo . Make sure your are typing the exact file name and providing the right path with folder name. You have to put a .(dot) if it is in a subfolder of the view folder.

    View [viewAgbeniStock] not found

    + 0
    Reply
    |  

    If you use <span style=”color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Oxygen-Sans, Ubuntu, Cantarell, ‘Helvetica Neue’, sans-serif; font-size: 15px;”>Jetstream then install </span><span style=”background-color: transparent; color: #666666; font-family: source-code-pro, Menlo, Monaco, Consolas, ‘Courier New’, monospace; font-size: 0.85em;”>livewire and your problem may solved</span>

    + 0
    Reply
    |  

    If you use Jetstream then install livewire and your problem may solved.

    + 0
    Reply
Viewing 5 replies - 1 through 5 (of 5 total)
Reply To: InvalidArgumentException View not found in Laravel 8
Your information: