Support the ongoing development of Laravel.io →
Laravel Input
Last updated 2 years ago.
0

You have to use the Request Facade or request helper to get those. It can be done like Request::get() or request()->get()

import 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;
Last updated 4 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Morish webfuelcode Joined 20 May 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.