$data = Data::where('service_id', $service_id)->first(array ('price','column3','column4','column5'));
Select() might be want you wanted instead of first().
tkprocat said:
$data = Data::where('service_id', $service_id)->first(array ('price','column3','column4','column5'));
Select() might be want you wanted instead of first().
I changed it to select but I get error
ErrorException in 976b4ab964254d5967eda65b448377f4 line 9:
Undefined property: Illuminate\Database\Eloquent\Builder::$price(View:
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community