app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $data["user_privileges"] = Auth::user()->group->privileges();
        return view('home' , $data);
    }
public function index ( ) { $ data [ " user_privileges " ] = Auth :: user ( ) -> group -> privileges ( ) ; return view ( 'home' , $ data ) ; }
Show the application dashboard.
Show the application dashboard .