laravel with trashed

53

laravel with trashed -

$flights = App\Flight::withTrashed()
                ->where('account_id', 1)
                ->get();

laravel update from query -

$affected = DB::table('users')
              ->where('id', 1)
              ->update(['votes' => 1]);

laravel query with trashed -

$user->roles()->withTrashed()->get();

Comments

Submit
0 Comments