<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
onelearningcommunity / laravel-model-explorer example snippets
Gate::define('viewModelExplorer', function (User $user): bool {
return $user->isAdmin();
});
return [
// Set to false to disable entirely (e.g. force off in production regardless of gate)
'enabled' => env('MODEL_EXPLORER_ENABLED', true),
// URL prefix for all Model Explorer routes
'path' => env('MODEL_EXPLORER_PATH', '_model-explorer'),
// Middleware applied to all routes ('web' is ,
],
// Traits whose FQN begins with these prefixes will be hidden in the UI
'excluded_trait_prefixes' => [
'Illuminate\Database\Eloquent\Concerns\\',
'Illuminate\Database\Eloquent\HasCollection',
'Illuminate\Support\Traits\\',
],
];