app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $settings = Setting::first();
        $all_departments = DesignDep::where('parent', null)->get();
        $slides = Slider::orderBy('rank', 'asc')->get();
        return view('website.index', compact('settings', 'all_departments', 'slides'));
    }
public function index ( ) { $ settings = Setting :: first ( ) ; $ all_departments = DesignDep :: where ( 'parent' , null ) -> get ( ) ; $ slides = Slider :: orderBy ( 'rank' , 'asc' ) -> get ( ) ; return view ( 'website.index' , compact ( 'settings' , 'all_departments' , 'slides' ) ) ; }
Show the application dashboard.
Show the application dashboard .