laravel get value from sql code example
Example 1: get single column value in laravel eloquent
Vehicle::find(3)->value('register_number');
Example 2: laravel find query
foreach ($flights as $flight) {
echo $flight->name;
}
Vehicle::find(3)->value('register_number');
foreach ($flights as $flight) {
echo $flight->name;
}