query('search', '')); RedirectResponse::macro('success', function($flash) { session()->flash('flash', ['success' => $flash]); return $this; }); } /** * Bootstrap any application services. * * @return void */ public function boot() { NamiGuard::beforeLogin(function(array $credentials) { return in_array($credentials['mglnr'], app(GeneralSettings::class)->allowed_nami_accounts) ? null : false; }); } }