/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $families = Family::all(); // $families = Family::latest('created_at')->get(); $kaplan_families = Family::kaplans('created_at')->get(); $keem_families = Family::keems('created_at')->get(); $kemler_families = Family::kemlers('created_at')->get(); $husband_families = Family::husbands('created_at')->get(); return view('family.index', compact('families', 'kaplan_families', 'keem_families', 'kemler_families', 'husband_families')); }
public function outline() { $user = \Auth::user(); // $original_families = Family::original('created_at')->get(); $original_keems = Family::keems('created_at')->original()->get(); $original_husbands = Family::husbands('created_at')->original()->get(); $original_kemlers = Family::kemlers('created_at')->original()->get(); $original_kaplans = Family::kaplans('created_at')->original()->get(); return view('pages.outline', compact('user', 'original_keems', 'original_husbands', 'original_kemlers', 'original_kaplans')); }