vendredi 1 mars 2019

How to change verb used in Resource URIs individually

I'm working on a project in Laravel 5.7. I've changed the verb used in "Resource" URIs from "create" to "enroll". In another resource controller, i want to change this to "submit". What exactly i want is to use my custom verbs in Resource URIs individually. How can i achieve this?

What i've done in the \Routing\ResourceRegistrar.php:

protected static $verbs = [
'create' => 'enroll',
'edit' => 'edit',
];

Now enroll is globally set. Is there anyway to restrict it to one Controller?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire