... in laravel code example
Example 1: firstwhere laravel
Role::firstWhere('name', 'admin')
Role::firstWhere(['name' => 'admin', 'display_name' => 'Administrateur'])
Example 2: laravel pluck
$users = Users::pluck('name','email');
dd($users);
Role::firstWhere('name', 'admin')
Role::firstWhere(['name' => 'admin', 'display_name' => 'Administrateur'])
$users = Users::pluck('name','email');
dd($users);