public function create()
    {
        $role                = new Role;
        $permissions         = Permission::all();
        $selectedPermissions = $this->request->old('permissions', []);

        return view('administrator.roles.create', compact('role', 'permissions', 'selectedPermissions'));
    }
public function create()
    {
        $role                = new Role;
        $permissions         = Permission::all();
        $selectedPermissions = $this->request->old('permissions', []);

        return view('administrator.roles.create', compact('role', 'permissions', 'selectedPermissions'));
    }
public function create ( ) { $ role = new Role ; $ permissions = Permission :: all ( ) ; $ selectedPermissions = $ this -> request -> old ( 'permissions' , [ ] ) ; return view ( 'administrator.roles.create' , compact ( 'role' , 'permissions' , 'selectedPermissions' ) ) ; }
Show role form.

@return \Illuminate\View\View
Show role form .