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,
In Laravel 5.5.x, I was able to extend the Request class for specific requests using the following:
ExtendedRequest class
ExtendedRequestServiceProvider
app->singleton(ExtendedRequest::class, function ($app) {
return ExtendedRequest::capture();
});
}
}
Then in your Controllers
hello();
}
}
Hope this helps someone.