how to get only data from the sql query without collection in laravel code example
Example 1: get single column value in laravel eloquent
Vehicle::find(3)->value('register_number');
Example 2: laravel find query
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Flight extends Model
{
//
}