I\'m new to Laravel (only experienced Laravel 5, so no legacy hang up here)
I\'d like to know how to extend the core Request class. In addition to how to extend it,
I was working on the same issue today and I think it's worth mention that you may just change
Illuminate\Http\Request::capture()
to
App\Http\CustomRequest::capture()
without adding line
$app->alias('request', 'App\Http\CustomRequest');
because inside capture()
method laravel actually binds provided class to service container with 'request' as a key