Question : Argument 1 passed to Symfony\Component\HttpFoundation\Response::setContent() must be of the type string or null, object given, called in
Answered by : creepy-crocodile-3eisewficz15
// USE GET FUNCTION
$order = Customer::find(1)->orders() ->where('fulfillment_status', 'fulfilled')->get();
Source : https://stackoverflow.com/questions/64094886/argument-1-passed-to-symfony-component-httpfoundation-responsesetcontent-wit/64094917 | Last Update : Sat, 01 Jan 22