/** * Run the user database seeds. * * @return void */ public function run() { DB::table('users')->delete(); User::create(['name' => 'Admin', 'email' => '*****@*****.**', 'password' => '123456']); }
/** * 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); }