PHP Laravel Route Group

Route::group(['prefix' => 'marketing'], function()
{
    Route::group(['prefix' => 'force'], function()
    {
        Route::group(['prefix' => 'preferences'], function()
        {
            Route::group(['prefix' => 'customer'], function()
            {
                Route::group(['prefix' => 'trigger'], function()
                {
                    Route::get('all', 'PreferencesController@trigger_customer_all');
                    Route::get('add', 'PreferencesController@trigger_customer_add');
                    Route::post('add', 'PreferencesController@trigger_customer_save');
                });
            });
        });
    });
});

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *