In Laravel I have a table settings and i have fetched complete data from the table in the BaseController, as following
public function __construct() {
In file - \vendor\autoload.php, define your gobals variable as follows, should be in the topmost line.
$global_variable = "Some value";//the global variable
Access that global variable anywhere as :-
$GLOBALS['global_variable'];
Enjoy :)