lundi 6 juillet 2020

127.0.0.1 is currently unable to handle this request. HTTP ERROR 500 after change the view folder structure Laravel

I had a folder setting like: resource > views > admin > product > index.blade.php. Now i have moved product folder from admin and the structure is resource > views > product > index.blade.php.

My previous ProductController.php

public function index()
{
    $products = $this->productservice->index();
    return view('admin.product.index')->with('products', $products);
}

My current ProductController.php

public function index()
{
    $products = $this->productservice->index();
    return view('product.index')->with('products', $products);
}

I have done

php artisan view:clear;
php artisan cache:clear;
php artisan route:clear;

Still it is not working.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire