File manager - Edit - /home/autoph/public_html/projects/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
Back
<?php namespace Illuminate\Routing\Middleware; use Closure; use Illuminate\Contracts\Routing\Registrar; use Illuminate\Database\Eloquent\ModelNotFoundException; class SubstituteBindings { /** * The router instance. * * @var \Illuminate\Contracts\Routing\Registrar */ protected $router; /** * Create a new bindings substitutor. * * @param \Illuminate\Contracts\Routing\Registrar $router * @return void */ public function __construct(Registrar $router) { $this->router = $router; } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $route = $request->route(); try { $this->router->substituteBindings($route); $this->router->substituteImplicitBindings($route); } catch (ModelNotFoundException $exception) { if ($route->getMissing()) { return $route->getMissing()($request, $exception); } throw $exception; } return $next($request); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings