group(function () { Route::get('notification/form/{element}', 'NotificationAPIController@form'); Route::resource('notification', 'NotificationAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for notifications Route::prefix('{guard}/notification')->group(function () { Route::get('notification/form/{element}', 'NotificationAPIController@form'); Route::apiResource('notification', 'NotificationAPIController'); }); // Public routes for notifications Route::get('notification/Notification', 'NotificationPublicController@getNotification'); } ); }