how to save query to db using laravel code example Example: db name laravel DB::connection()->getDatabaseName() //laravel