app/Http/Controllers/RolesController.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()
    {
        $role=Role::all();
        $permission=Permission::all();
        return view('role.index',compact('role'));
    }
public function index ( ) { $ role = Role :: all ( ) ; $ permission = Permission :: all ( ) ; return view ( 'role.index' , compact ( 'role' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//