laravel-shift / blueprint

A code generation tool for Laravel developers.
MIT License
2.89k stars 273 forks source link

Controller Short code #603

Closed malsgit closed 1 year ago

malsgit commented 1 year ago

Not a bug or a request and I don't do twitter...!

when using short code on the Controller, how do you get it to generate notification, send or redirect, when doing the following...

ControllerName:
     resources: web 

is it not something like this, as that seems to break stuff....

ControllerName:
    resource: web
    notify: controller_name.user_id
    send: ReviewNotification to:controller_name.user_id with:controller_name
    redirect: controller_name.index
jasonmccreary commented 1 year ago

You can't put statements top level like that. They need to be underneath an action. I believe you can use resource and overwrite an individual method.

Best to read the docs.

malsgit commented 1 year ago

You can't put statements top level like that. They need to be underneath an action. I believe you can use resource and overwrite an individual method.

Best to read the docs.

Thought so, i was just checking to see if you could or not :-)