Get the first record and select a given table column name in one line
Is there a way to do the below mentioned in one line?
$sub_job = $sub_jobs->first();
$comp = $sub_job->comp;
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!