laravel add function to database code example Example: db name laravel DB::connection()->getDatabaseName() //laravel