This my Code:
public function storeQuery(Request $request)
{
$q = new Query;
//query table
//input lines
$qr = $q->save(); //Getting Error here
return view('caller.loader');
}
Here is Errors:
Object of class Symfony\Component\HttpFoundation\ParameterBag could not be converted to string
I could not get it.
You are probably doing something like $request->query
$request->query
is an object of type ParameterBag which contains the Query Params for GET Requests.
You should rather use $request->get('query')
in these circumstances
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With