declare constant php laravel class code example Example: laravel get a const variable // In user model const role_id // Call with v User::role_id