Laravel Nova custom action - laravel

I have just started using Laravel Nova and need to create some sort of custom action.
Within my Nova Dashboard I would like to have a button to create a new User.
I also need to generate a password and choose from a role for this user.
If User has role admin I will need to send user password per email.
What is the best way to have this action inside Nova?
Thanks!

Related

How to make user email unique based on user roles

I am new to laravel i am using laravel 6x.
Now i want to know how to make user email unique based on user roles .I am using spatie permissions
I have two type of users
admin
End user
Now i want to use laravel validation for same email for different roles,that means, email should be unique by roles.
Anybody has any idea, please let me know

laravel- How to create separate registration form in the same view?

I created a registration form using make:auth in laravel and I made some changes to it like below:
I want to create three separate registration forms(each form has slightly different inputs) such as normal user, special user, super user for example. So that any user can select the registration category they want. I read about spatie in laravel but I am only looking to a way to be able for user to choose the registration form and it changes accordingly on the same page.
Is there a way to do this?

how to make frontend user login and admin login in laravel

I have requirement of user login in frontend and also i need to make admin panel in laravel, i have create custom user table for frontend user because its have multiple other fields, in this case if i use laravel php artisan make:auth then it will create laravel login that i can redirect to different route(different admin folder in views) but if i use laravel default login and add frontend user custom fields in db table then how can i use this direction? My main question is, i need to use laravel make:auth db table for front end user and administrator user with different role or i need to make two different tables for both admin and frontuser login?
You can use the package below to do this.
The following package contains the Role&Permission - registration and login.
If your problem is not resolved, I can help you more.

How to use the password reset form for logged in user in Laravel 5.2?

I am trying to use the auth\passwords\reset blade from the auth() scaffold package to let a user change their password once they are logged in. At the moment, this page does not show up as it's not added to the proper middleware route as discussed here
I'm trying to develop a simple form with a password and confirm password field, which the user could use to change their password to set a new password.

how do I expose the user groups in a public registration-form in joomla?

When creating a new account from the front-end I'd like the user to be able to choose a user group in which to register (joomla 2.9). How do I expose the groups I created in the back-end into a registration form, for the users to choose one when registering? Thanks.
Well, you can just add the field to your form but the problem is that you would not want to show all of the groups since then people could select super admin or admin.
So what you need to do instead is make a custom field that is more selective.

Resources