Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create / Update Undefined In User Attach Role #27

Open
jahid56 opened this issue Sep 17, 2019 · 0 comments
Open

Create / Update Undefined In User Attach Role #27

jahid56 opened this issue Sep 17, 2019 · 0 comments

Comments

@jahid56
Copy link

jahid56 commented Sep 17, 2019

I just install the package, The Package Works fine except When I go to attach role page of an user it shows Update Undefined Error, Could not find the problem
Screenshot_3

Here Is My Code
`

return [

	ID::make()
	  ->sortable(),
	  
	Text::make('Email')
		->sortable()
		->rules('required', 'email', 'max:191')
		->creationRules('unique:users,email')
		->updateRules('unique:users,email,{{resourceId}}'),

	Password::make('Password')
			->onlyOnForms()
			->creationRules('required', 'string', 'min:6')
			->updateRules('nullable', 'string', 'min:6')
			->hideFromIndex()
			->hideWhenUpdating()
			->hideFromDetail(),
   
	MorphToMany::make('Roles', 'roles', \Eminiarts\NovaPermissions\Nova\Role::class),

	MorphToMany::make('Permissions', 'permissions', Permission::class)
			   ->hideFromDetail(),
];

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant