Пример #1
0
 /**
  * Run the user database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('users')->delete();
     User::create(['name' => 'Admin', 'email' => '*****@*****.**', 'password' => '123456']);
 }
Пример #2
0
 /**
  * Get the query object to be processed by datatables.
  *
  * @return \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder
  */
 public function query()
 {
     $users = User::query();
     return $this->applyScopes($users);
 }