Describe your path where models directory, set your namespace model and adding a prefix if you want (optional).
$modelPath = app_path().'\\Models\\';
$namespace = 'App\Models\\';
dd(getAllModels($modelPath, $namespace));| <?php | |
| /** | |
| * Filter tag if exists | |
| * @param string $input Get value from input name | |
| * @return array All tags is don't exists | |
| */ | |
| private function tagged($input) | |
| { | |
| $newTags = []; | |
| $tags = explode(',', $input); |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use App\Models\Permission; | |
| class AclMiddleware | |
| { | |
| private $restfull = [ |