Skip to content
Discussion options

You must be logged in to vote

I was able to achieve this by building off of the following link:

https://backpackforlaravel.com/docs/6.x/crud-operation-create#override-the-store-method

Here's the field I added:

        CRUD::field([
            'name'  => 'sendEmail',
            'label' => 'Send a <a tabindex="-1" href="/admin/setting/0/edit#new-user-email" target="_blank">New User Email</a> with a randomly generated eight character alpha-numeric password',
            'type'  => 'checkbox',
            'default' => 1,
            'attributes' => ['tabindex' => '-1'],
        ]);

And here's my store function:

public function store()
{
    $request = $this->crud->getRequest();
    $email = $request->input('email', '');…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prescriptionlifeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant