Laravel custom routes
Posted: 15 Sep 2017, 12:34
I am trying to add a custom middleware in the /checkout route but seems like it doesn't want to work.
I followed the steps at https://aimeos.org/docs/Laravel/Custom_routes
So i added this piece of code to /app/Http/routes.php :
but nothing happens, i also put this line of code in /config/shop.php :
I run
and
every time but nothing changes.
if i do
i don't see the "checkout" URI listed.
I followed the steps at https://aimeos.org/docs/Laravel/Custom_routes
So i added this piece of code to /app/Http/routes.php :
Code: Select all
Route::match( array( 'GET', 'POST' ), 'checkout', array(
'as' => 'aimeos_shop_checkout',
'uses' => 'Aimeos\Shop\Controller\CheckoutController@indexAction',
'middleware' => 'hasPaymentSet',
));
Code: Select all
'checkout' => ['middleware' => ['auth', 'hasMangopay']],
I run
Code: Select all
php artisan aimeos:cache
and
Code: Select all
php artisan cache:clear
if i do
Code: Select all
php artisan route:list
i don't see the "checkout" URI listed.