Object of class Illuminate\Database\Eloquent\Builder could not be converted to string
Put "->first();" in the end of function call
Object of class Illuminate\Database\Eloquent\Builder could not be converted to string
Put "->first();" in the end of function call
object of class stdclass could not be converted to string php laravel
/*
$data is indeed an array, but it's made up of objects.
Convert its content to array before creating it*/
$data = array();
foreach ($results as $result) {
$result->filed1 = 'some modification';
$result->filed2 = 'some modification2';
$data[] = (array)$result;
#or first convert it and then change its properties using
#an array syntax, it's up to you
}
Excel::create(....
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us