Modèle d'accès dans config Laravel

//global variable
//Laravel - App/Providers/AppServiceProvider

use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Config;
use App\Models\UsersModel;

//in boot function
if (Schema::hasTable('users')) {
  $user = UsersModel::findOrFail(1);
  Config::set('user_type', $user->type);
}

//to access it use
config('user_type');
//or
Config::get('user_type')
iF n OnLy iF