ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.227.81.250 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/fund.old.nicn.gov.ng/funds-old/vendor/laravel/framework/src/Illuminate/Foundation/Providers/ |
Upload File : |
<?php namespace Illuminate\Foundation\Providers; use Illuminate\Routing\Redirector; use Illuminate\Support\ServiceProvider; use Illuminate\Foundation\Http\FormRequest; use Symfony\Component\HttpFoundation\Request; use Illuminate\Contracts\Validation\ValidatesWhenResolved; class FoundationServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { // } /** * Bootstrap the application services. * * @return void */ public function boot() { $this->configureFormRequests(); } /** * Configure the form request related services. * * @return void */ protected function configureFormRequests() { $this->app->afterResolving(function (ValidatesWhenResolved $resolved) { $resolved->validate(); }); $this->app->resolving(function (FormRequest $request, $app) { $this->initializeRequest($request, $app['request']); $request->setContainer($app)->setRedirector($app->make(Redirector::class)); }); } /** * Initialize the form request with data from the given request. * * @param \Illuminate\Foundation\Http\FormRequest $form * @param \Symfony\Component\HttpFoundation\Request $current * @return void */ protected function initializeRequest(FormRequest $form, Request $current) { $files = $current->files->all(); $files = is_array($files) ? array_filter($files) : $files; $form->initialize( $current->query->all(), $current->request->all(), $current->attributes->all(), $current->cookies->all(), $files, $current->server->all(), $current->getContent() ); if ($session = $current->getSession()) { $form->setSession($session); } $form->setUserResolver($current->getUserResolver()); $form->setRouteResolver($current->getRouteResolver()); } }