In Laravel I have a table settings and i have fetched complete data from the table in the BaseController, as following
public function __construct() {
A global variable for using in controllers; you can set in AppServiceProvider like this :
public function boot() { $company=DB::table('company')->where('id',1)->first(); config(['yourconfig.company' => $company]); }
usage
config('yourconfig.company');