/** * Get the query object to be processed by datatables. * * @return \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder */ public function query() { $users = import::query(); return $this->applyScopes($users); }
/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { $import = import::all(); return view('bootstrap.index', compact('import')); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { import::FindOrFail($id)->delete(); return redirect('import'); }