/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $deparments = Deparment::orderBy('code', 'ASC')->get(); return view('deparments.index')->with('deparments', $deparments); }