I'm new to laravel and I have a problem
$profile_id = Profile::where("customer_id",$data["customer_id"])->where('is_default', 1)->select('id')->first()->get();
From this query, how do I get the field id
?
I tried
$profile_id->id
but gave an error
Undefined property: Illuminate \ Database \ Eloquent \ Collection :: $ id