Hello Devs,
In this tutorial, we are going to learn how to get specific column in get() function.
In PHP
SELECT `name`,`surname` FROM `table` WHERE `id` = '1';
In Laravel
TableName::select('name','surname')->where('id', 1)->get();
I hope this example helps you.