samedi 23 décembre 2017

Laravel using regular expression for exclude routes

in VerifyCsrfToken class i want to use for example

protected $except = [
    '/dashboard/administrator/attachImage',
    '/{ANY}/product/payment/checkTransaction'
];

instead of:

protected $except = [
    '/dashboard/administrator/attachImage',
    '/fa/product/payment/checkTransaction',
    '/en/product/payment/checkTransaction',
    '/ru/product/payment/checkTransaction',
    '/az/product/payment/checkTransaction',
];

how can i use that and my question is laravel cab be support using regular expression on this array?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2zn4mHn
via IFTTT

Aucun commentaire:

Enregistrer un commentaire