laravel global scope with parameter code example Example: global variable in laravel controller private $variable;