laravel define constants inside controller code example Example: laravel get a const variable // In user model const role_id // Call with v User::role_id