mercredi 20 mars 2019

Getting issue "Class 'App/Category' not found" it

In Category.php

namespace App;

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

and in Controller.php

namespace App\Http\Controllers;

use App\Models\Category;

use App\Setting;

use App\Post;

use function GuzzleHttp\Promise\all;

use Illuminate\Http\Request;

First Change from use App\Category; to use Category, to use \Category, to use App\Models\Category. Seconf composer dump-autoload.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire