app/Http/Controllers/RoleController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $roles=Role::all();
        return view('role.index',['roles'=>$roles]);
    }
public function index ( ) { $ roles = Role :: all ( ) ; return view ( 'role.index' , [ 'roles' => $ roles ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//