Recent Topics

Custom pages not working

  • Hi,

    I'm using this method:

    But when I create route I've got error:

    View [resources\views\themes\default\views\products-listing] not found.


    "View [resources\views\themes\demo\views\products-listing] not found."

    My web.php

    Route::view('products-listing', 'resources\views\themes\default\views\products-listing');

    In products-listing folder I have a one file: products-listing.blade.php

    What I'm doing wrong here?

  • Hello @PyramidHead

    According to your web.php file, your views should be residing in the given path - resources\views\themes\default\views\products-listing

    Make sure, your view exist there and then after run following command -

    php artisan route:cache

    and check again.

    Rahul Shukla

Log in to reply