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()
    {
      $role=Role::all();
        return view('home',compact('role'));
    }
public function index ( ) { $ role = Role :: all ( ) ; return view ( 'home' , compact ( 'role' ) ) ; }
Show the application dashboard.
Show the application dashboard .