zaster
6 months ago

Get the first record and select a given table column name in one line

Posted 6 months ago by zaster

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.