laravel get value from query code example
Example 1: get single column value in laravel eloquent
Vehicle::find(3)->value('register_number');
Example 2: laravel get sql query eloquent with parameters
$query->toSql();
$query->getBindings()
Vehicle::find(3)->value('register_number');
$query->toSql();
$query->getBindings()