Hello, Request class ? https://laravel.com/docs/7.x/requests#input-trimming-and-norma...
You have to use the Request Facade or request helper to get those. It can be done like
Illuminate\Http\Request at the top to use facade
In your case use this
$solutionId=request()->get('solutionId'); $threadId=request()->get('threadId'); $thread=Thread::find($threadId); $thread->solution=$solutionId;
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.