public static function _routes_status() { $_class = get_called_class(); $_uri = static::$uri; $_as = static::$action; Route::post("{$_uri}/status/change", ['as' => "{$_as}.edit.status", 'uses' => "{$_class}@change_status"]); }
public static function routes() { Route::get('/login', 'AdminLogin@getLogin'); Route::get('/admin-login', 'AdminLogin@getLogin'); Route::get('/admin', 'AdminLogin@forwardAdmin'); Route::post('/admin-login', 'AdminLogin@postLogin'); Route::get('/logout', 'Logout@getLogout'); }
public static function _routes_switch() { $_class = get_called_class(); $_uri = static::$uri; $_as = static::$action; Route::post("{$_uri}/switch/on", ['as' => "{$_as}.edit.switch.on", 'uses' => "{$_class}@switchON"]); Route::post("{$_uri}/switch/off", ['as' => "{$_as}.edit.switch.off", 'uses' => "{$_class}@switchOFF"]); }
public static function _routes_pickup() { $_class = get_called_class(); $_uri = static::$uri; $_as = static::$action; Route::post("{$_uri}/show_picked_up_item", ['as' => "{$_as}.show.picked_up_item", 'uses' => "{$_class}@show_picked_up_item"]); Route::post("{$_uri}/pick_up_item_search", ['as' => "{$_as}.show.search_pick_up_item", 'uses' => "{$_class}@pick_up_item_search"]); }
private function routes() { Route::get('/', array('uses' => self::$wardrobeControllers . 'AdminController@index', 'as' => 'wardrobe.admin.index')); Route::get('logout', array('uses' => self::$wardrobeControllers . 'LoginController@destroy', 'as' => 'wardrobe.admin.logout')); Route::get('login', array('uses' => self::$wardrobeControllers . 'LoginController@create', 'as' => 'wardrobe.admin.login')); Route::post('login', array('uses' => self::$wardrobeControllers . 'LoginController@store')); Route::get('login/remind', array('uses' => self::$wardrobeControllers . 'LoginController@remindForm', 'as' => 'wardrobe.admin.remindForm')); Route::post('login/remind', array('uses' => self::$wardrobeControllers . 'LoginController@remindSend')); }
public static function _routes_trash() { $_class = get_called_class(); $_uri = static::$uri; $_as = static::$action; Route::post("{$_uri}/trash", ['as' => "{$_as}.delete.trash", 'uses' => "{$_class}@trash"]); Route::get("{$_uri}/trashed", ['as' => "{$_as}.delete.trashed", 'uses' => "{$_class}@trashed"]); Route::post("{$_uri}/restore", ['as' => "{$_as}.delete.restore", 'uses' => "{$_class}@restore"]); }
public static function _routes_edit() { $_class = get_called_class(); $_uri = static::$uri; $_as = static::$action; Route::get("{$_uri}/edit/{id}", ['as' => "{$_as}.edit.form", 'uses' => "{$_class}@edit"]); Route::post("{$_uri}/update/{id}", ['as' => "{$_as}.edit.update", 'uses' => "{$_class}@update"]); Route::get("{$_uri}/create", ['as' => "{$_as}.create.form", 'uses' => "{$_class}@create"]); Route::post("{$_uri}/store", ['as' => "{$_as}.create.store", 'uses' => "{$_class}@store"]); }
/** * Perform post-registration booting of services. * * @return void */ public function boot() { // Publish pieces if (!$this->isLumen()) { $this->publishes([__DIR__ . '/../config/mail-tracker.php' => config_path('mail-tracker.php')], 'config'); $this->publishes([__DIR__ . '/../migrations/2016_03_01_193027_create_sent_emails_table.php' => database_path('migrations/2016_03_01_193027_create_sent_emails_table.php')], 'config'); $this->publishes([__DIR__ . '/../migrations/2016_09_07_193027_create_sent_emails_Url_Clicked_table.php' => database_path('migrations/2016_09_07_193027_create_sent_emails_Url_Clicked_table.php')], 'config'); $this->publishes([__DIR__ . '/../migrations/2016_11_10_213551_add-message-id-to-sent-emails-table.php' => database_path('migrations/2016_11_10_213551_add-message-id-to-sent-emails-table.php')], 'config'); $this->loadViewsFrom(__DIR__ . '/views', 'emailTrakingViews'); $this->publishes([__DIR__ . '/views' => base_path('resources/views/vendor/emailTrakingViews')]); } // Hook into the mailer $this->app['mailer']->getSwiftMailer()->registerPlugin(new MailTracker()); // Install the routes $config = $this->app['config']->get('mail-tracker.route', []); $config['namespace'] = 'jdavidbakr\\MailTracker'; if (!$this->isLumen()) { Route::group($config, function () { Route::get('t/{hash}', 'MailTrackerController@getT')->name('mailTracker_t'); Route::get('l/{url}/{hash}', 'MailTrackerController@getL')->name('mailTracker_l'); Route::post('sns', 'SNSController@callback')->name('mailTracker_SNS'); }); } else { $app = $this->app; $app->group($config, function () use($app) { $app->get('t', 'MailTrackerController@getT')->name('mailTracker_t'); $app->get('l', 'MailTrackerController@getL')->name('mailTracker_l'); $app->post('sns', 'SNSController@callback')->name('mailTracker_SNS'); }); } // Install the Admin routes $config_admin = $this->app['config']->get('mail-tracker.admin-route', []); $config_admin['namespace'] = 'jdavidbakr\\MailTracker'; if (!$this->isLumen()) { Route::group($config_admin, function () { Route::get('/', 'AdminController@getIndex')->name('mailTracker_Index'); Route::post('search', 'AdminController@postSearch')->name('mailTracker_Search'); Route::get('clear-search', 'AdminController@clearSearch')->name('mailTracker_ClearSearch'); Route::get('show-email/{id}', 'AdminController@getShowEmail')->name('mailTracker_ShowEmail'); Route::get('url-detail/{id}', 'AdminController@getUrlDetail')->name('mailTracker_UrlDetail'); Route::get('smtp-detail/{id}', 'AdminController@getSmtpDetail')->name('mailTracker_SmtpDetail'); }); } else { $app = $this->app; $app->group($config_admin, function () use($app) { $app->get('/', 'AdminController@getIndex')->name('mailTracker_Index'); $app->post('search', 'AdminController@postSearch')->name('mailTracker_Search'); $app->get('clear-search', 'AdminController@clearSearch')->name('mailTracker_ClearSearch'); $app->get('show-email/{id}', 'AdminController@getShowEmail')->name('mailTracker_ShowEmail'); $app->get('url-detail/{id}', 'AdminController@getUrlDetail')->name('mailTracker_UrlDetail'); $app->get('smtp-detail/{id}', 'AdminController@getSmtpDetail')->name('mailTracker_SmtpDetail'); }); } }
public function auth() { $namespace = "\\CodePress\\CodeUser\\Controllers"; Route::group(['namespace' => null], function () use($namespace) { Route::get('login', "{$namespace}\\Auth\\AuthController@showLoginForm"); Route::post('login', "{$namespace}\\Auth\\AuthController@login"); Route::get('logout', "{$namespace}\\Auth\\AuthController@logout"); Route::get('password/reset/{token?}', "{$namespace}\\Auth\\PasswordController@showResetForm"); Route::post('password/email', "{$namespace}\\Auth\\PasswordController@sendResetLinkEmail"); Route::post('password/reset', "{$namespace}\\Auth\\PasswordController@reset"); }); }
/** * @param array $tables */ public static function route(array $tables) { Route::group(Config::get(TableAdmin::PACKAGE_NAME . '::routing'), function () use($tables) { $parameters = ['table' => '(' . implode('|', $tables) . ')']; $controller = '\\Shin1x1\\LaravelTableAdmin\\Controller\\TableAdminController'; Route::get('{table}', $controller . '@index')->where($parameters); Route::get('{table}/create', $controller . '@create')->where($parameters); Route::post('{table}', $controller . '@store')->where($parameters); Route::get('{table}/{id}', $controller . '@edit')->where($parameters); Route::put('{table}/{id}', $controller . '@update')->where($parameters); Route::delete('{table}/{id}', $controller . '@destroy')->where($parameters); }); }
private function routes(Router $router) { $router->middleware('djem.auth', \DJEM\Http\Middleware\Authenticate::class); $router->middlewareGroup('djem.web', [\Illuminate\Cookie\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \DJEM\Http\Middleware\VerifyCsrfToken::class]); Route::group(['middleware' => ['djem.web', 'djem.auth'], 'namespace' => '\\DJEM\\Http\\Controllers'], function () { Route::any('djem/api', 'Api@getState'); Route::any('djem/api/tree', 'Api\\Main@tree'); Route::any('djem/api/grid', 'Api\\Main@grid'); Route::any('djem/api/content/delete', 'Api\\Content@delete'); Route::any('djem/api/content/load', 'Api\\Content@loadRelation'); Route::get('djem/api/content', 'Api\\Content@get'); Route::post('djem/api/content', 'Api\\Content@set'); Route::get('djem/api/files', 'Api\\Files@get'); Route::post('djem/api/files/upload', 'Api\\Files@upload'); Route::post('djem/api/files', 'Api\\Files@set'); }); Route::get('djem/{file?}', '\\DJEM\\Http\\Controllers\\StaticFiles@get')->where('file', '.*'); }
/** * Register the service provider. * * @return void */ public function register() { include __DIR__ . '/../../../../../../app/Http/routes.php'; Route::post('validation', function (Request $request) { $class = $request->class; $class = str_replace('/', '\\', $class); $my_request = new $class(); $validator = Validator::make($request->all(), $my_request->rules(), $my_request->messages()); $validator->setAttributeNames($my_request->attributes()); if ($request->ajax()) { if ($validator->fails()) { return response()->json(array('success' => false, 'errors' => $validator->getMessageBag()->toArray())); } else { return response()->json(array('success' => true)); } } }); $this->publishes([__DIR__ . '/views' => base_path('resources/views/vendor/lrgt')]); }
/** * Boot the application events. * * @return void */ public function boot() { $this->registerTranslations(); $this->registerConfig(); $this->registerViews(); if (cmsinstalled()) { if (true || Settings::get('users.users_module_as_home_page')) { Route::group(['middleware' => ['web', 'user'], 'namespace' => 'cms\\Modules\\Users\\Http\\Controllers\\Frontend'], function () { Route::get('/', ['as' => 'home', 'uses' => 'UsersController@index']); }); } if (Settings::get('users.is_registration_allowed')) { Route::group(['middleware' => ['web'], 'as' => 'users.', 'namespace' => 'cms\\Modules\\Users\\Http\\Controllers\\Frontend'], function () { // Registration routes... Route::get('register', ['as' => 'register', 'uses' => 'RegisterController@showRegistrationForm']); Route::post('register', 'RegisterController@register'); // Register from social networks Route::get('register/{provider?}', ['uses' => 'RegisterController@getRegisterFromProvider']); Route::post('register/{provider?}', ['uses' => 'RegisterController@postRegisterFromProvider']); }); } } }
Route::get('/', ['as' => 'home', 'uses' => 'FrontController@index']); Route::get('cat/{id}/{slug?}', 'FrontController@showProductByCategory'); Route::get('tag/{id}/{slug?}', 'FrontController@showProductByTag'); Route::get('prod/{id}/{slug?}', 'FrontController@showProduct'); Route::post('storeCart', 'FrontController@storeCart'); Route::get('cart', 'FrontController@showCart'); Route::get('removeCart/{id}', 'FrontController@removeCart'); Route::post('quantityCart', 'FrontController@quantityCart'); Route::post('updateQuantity', 'FrontController@updateQuantity'); Route::get('contact', 'FrontController@showContact'); Route::post('storeContact', 'FrontController@storeContact'); Route::get('account', 'FrontController@account'); Route::get('register', 'RegisterController@register'); Route::post('storeUser', 'RegisterController@storeUser'); Route::group(['middleware' => ['throttle:60,1']], function () { Route::any('login', 'LoginController@login'); }); Route::get('logout', 'LoginController@logout'); Route::group(['middleware' => ['auth', 'admin']], function () { Route::resource('product', 'Admin\\ProductController'); Route::get('product/status/{id}', 'Admin\\ProductController@changeStatus'); Route::get('product/remove/{id}', 'Admin\\ProductController@confirmRemove'); Route::get('history', 'Admin\\HistoryController@index'); }); Route::group(['middleware' => ['auth']], function () { Route::get('validateCart', 'FrontController@validateCart'); Route::get('confirmCart', 'FrontController@confirmCart'); Route::any('customer', 'RegisterController@customer'); Route::post('storeCustomer', 'RegisterController@storeCustomer'); }); });
<?php use Illuminate\Support\Facades\Route; /** * Authentication */ Route::group(['prefix' => 'v1', 'middleware' => 'cors'], function () { Route::any('/auth/fellowshipone', ['as' => 'authEndpoint', 'uses' => 'AuthController@fellowshipone']); Route::post('auth/register', 'AuthController@register'); Route::get('auth/verify-email', 'AuthController@verifyEmail'); }); /** * API */ Route::group(['prefix' => 'v1', 'middleware' => 'jwt.auth'], function () { Route::get('/', 'AuthenticateController@index'); });
Route::get('/admin/twitter_config', 'TwitterConfigController@index'); Route::resource('admin/ad_block_config', 'AdBlockController'); Route::get('/admin/ad_block_config', 'AdBlockController@index'); Route::resource('payment_processors', 'PaymentProcessorsController'); Route::get('payment_processors', 'PaymentProcessorsController@index'); Route::get('/admin/payment_processors/create', 'PaymentProcessorsController@create'); Route::get('/admin/payment_processors/{slug}/edit', 'PaymentProcessorsController@edit'); Route::get('payment_processors/{paymentProcessorSlug}/rotator', 'PaymentProcessorsController@faucets'); Route::get('admin/admin', 'AdminController@index'); Route::get('admin/overview', 'AdminController@overview'); // Password reset link request routes... Route::get('password/email', 'Auth\\PasswordController@getEmail'); Route::post('password/email', 'Auth\\PasswordController@postEmail'); // Password reset routes... Route::get('password/reset/{token}', 'Auth\\PasswordController@getReset'); Route::post('password/reset', 'Auth\\PasswordController@postReset'); Route::get('sitemap', function () { // create new sitemap object $sitemap = App::make("sitemap"); // set cache (key (string), duration in minutes (Carbon|Datetime|int), turn on/off (boolean)) // by default cache is disabled $sitemap->setCache('laravel.sitemap', 15); // check if there is cached sitemap and build new only if is not if (!$sitemap->isCached()) { // add item to the sitemap (url, date, priority, freq) $sitemap->add(URL::to('/'), Carbon::now(), '1.0', 'daily'); $sitemap->add(URL::to('/faucets'), Carbon::now(), '1.0', 'daily'); $sitemap->add(URL::to('/payment_processors'), Carbon::now(), '1.0', 'daily'); // get all faucets from db $faucets = DB::table('faucets')->orderBy('name', 'asc')->get(); // add every post to the sitemap
// $article->setTable('articles'); // $article->title = Input::get('title'); // $article->author = 'admin'; // $article->taxonomy = 'bksjy-bkszs'; // $article->body = Input::get('body'); // $article->created_at = Input::get('time'); // $article->save(); // return response('good'); // }); Route::get('/', 'Visit@index'); Route::get('/archive/{id}', 'Visit@showArticle'); Route::get('/list/{section}/{sort}', 'Visit@showArticleList'); Route::get('/teacherList/{taxonomy}', 'Visit@showTeacherList'); Route::get('/teacher/{id}', 'Visit@showTeacher'); Route::get('/admin', 'Admin@login'); Route::post('/check', 'Admin@check'); Route::get('/logout', 'Admin@logout'); Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function () { Route::get('about', 'Admin@about'); Route::get('article', 'Admin@article'); Route::get('articleEdit', 'Admin@articleEdit'); Route::post('articleSave', 'Admin@articleSave'); Route::get('articleDelete', 'Admin@articleDelete'); Route::get('articleNew', 'Admin@articleNew'); Route::get('teacher', 'Admin@teacher'); Route::get('teacherEdit', 'Admin@teacherEdit'); Route::post('teacherSave', 'Admin@teacherSave'); Route::get('teacherDelete', 'Admin@teacherDelete'); Route::get('teacherNew', 'Admin@teacherNew'); Route::get('repass', 'Admin@repass'); });
Route::post('users/login', 'Auth\\AuthController@postLogin'); Route::get('sendemail', function () { $data = array('name' => "Learning Laravel"); Mail::send('emails.welcome', $data, function ($message) { $message->from('*****@*****.**', 'Learning Laravel'); $message->to('*****@*****.**')->subject('Learning Laravel test email'); }); return "Your email has been sent successfully"; }); }); // Route::get('users/logout', 'Auth\AuthController@getLogout'); Route::get('/home', 'HomeController@index'); Route::group(['middleware' => 'web'], function () { Route::auth(); Route::get('users/logout', 'Auth\\AuthController@logout'); Route::get('/home', 'HomeController@index'); Route::group(array('prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => 'manager'), function () { Route::get('users', 'UsersController@index'); Route::get('roles', 'RolesController@index'); Route::get('roles/create', 'RolesController@create'); Route::post('roles/create', 'RolesController@store'); Route::get('users/{id?}/edit', 'UsersController@edit'); Route::post('users/{id?}/edit', 'UsersController@update'); Route::get('/', 'PagesController@home'); Route::get('posts', 'PostsController@index'); Route::get('posts/create', 'PostsController@create'); Route::post('posts/create', 'PostsController@store'); Route::get('posts/{id?}/edit', 'PostsController@edit'); Route::post('posts/{id?}/edit', 'PostsController@update'); }); });
Route::get('create', 'Urls@create'); Route::post('', 'Urls@store'); Route::post('{url}/make-primary', 'Urls@makePrimary'); Route::delete('{url}', 'Urls@destroy'); Route::get('{url}/move', 'Urls@getMove'); Route::post('{url}/move', 'Urls@postMove'); }); Route::get('tags', 'Tags@view'); Route::post('tags', 'Tags@add'); Route::delete('tags/{tag}', 'Tags@remove'); Route::get('relations', 'Relations@index'); Route::post('relations/{related}', 'Relations@store'); Route::delete('relations/{related}', 'Relations@destroy'); Route::get('acl', 'Acl@index'); Route::put('acl', 'Acl@update'); Route::post('acl/{group}', 'Acl@store'); Route::delete('acl/{group}', 'Acl@destroy'); Route::get('', 'PageController@getIndex'); }); }); }); }); Route::group(['prefix' => 'asset'], function () { Route::get('version/{id}/{width?}/{height?}', ['as' => 'asset-version', 'middleware' => ['web', Middleware\RequireLogin::class], 'uses' => function ($versionId, $width = null, $height = null) { $asset = Asset::findByVersionId($versionId); return App::make(AssetHelper::controller($asset), [$asset])->view($width, $height); }]); Route::get('{asset}/download', ['asset' => 'asset-download', 'middleware' => [Middleware\LogAssetDownload::class], 'uses' => function ($asset) { return App::make(AssetHelper::controller($asset), [$asset])->download(); }]); Route::get('{asset}/{action}.{extension}', ['as' => 'asset', 'middleware' => [Middleware\CheckAssetETag::class], 'uses' => function ($asset, $action = 'view', $width = null, $height = null) {
/** * Bootstrap the application services. * * @return void */ public function boot() { $installer = new InstallController(); // if a migration is missing scape to the installation if (empty($installer->inactiveMigrations()) && DB::table('ticketit_settings')->count() != 0) { // Send the Agent User model to the view under $u view()->composer('*', function ($view) { if (auth()->check()) { $u = Agent::find(auth()->user()->id); $view->with('u', $u); } $setting = new Setting(); $view->with('setting', $setting); }); // Adding HTML5 color picker to form elements CollectiveForm::macro('custom', function ($type, $name, $value = "#000000", $options = []) { $field = $this->input($type, $name, $value, $options); return $field; }); // Passing to views the master view value from the setting file view()->composer('ticketit::*', function ($view) { $tools = new ToolsController(); $master = Setting::grab('master_template'); $email = Setting::grab('email.template'); $view->with(compact('master', 'email', 'tools')); }); // Send notification when new comment is added Comment::creating(function ($comment) { if (Setting::grab('comment_notification')) { $notification = new NotificationsController(); $notification->newComment($comment); } }); // Send notification when ticket status is modified Ticket::updating(function ($modified_ticket) { if (Setting::grab('status_notification')) { $original_ticket = Ticket::find($modified_ticket->id); if ($original_ticket->status_id != $modified_ticket->status_id || $original_ticket->completed_at != $modified_ticket->completed_at) { $notification = new NotificationsController(); $notification->ticketStatusUpdated($modified_ticket, $original_ticket); } } if (Setting::grab('assigned_notification')) { $original_ticket = Ticket::find($modified_ticket->id); if ($original_ticket->agent->id != $modified_ticket->agent->id) { $notification = new NotificationsController(); $notification->ticketAgentUpdated($modified_ticket, $original_ticket); } } return true; }); // Send notification when ticket status is modified Ticket::created(function ($ticket) { if (Setting::grab('assigned_notification')) { $notification = new NotificationsController(); $notification->newTicketNotifyAgent($ticket); } return true; }); $this->loadTranslationsFrom(__DIR__ . '/Translations', 'ticketit'); $this->loadViewsFrom(__DIR__ . '/Views', 'ticketit'); $this->publishes([__DIR__ . '/Views' => base_path('resources/views/vendor/ticketit')], 'views'); $this->publishes([__DIR__ . '/Translations' => base_path('resources/lang/vendor/ticketit')], 'lang'); $this->publishes([__DIR__ . '/Public' => public_path('vendor/ticketit')], 'public'); $this->publishes([__DIR__ . '/Migrations' => base_path('database/migrations')], 'db'); // Check public assets are present, publish them if not // $installer->publicAssets(); $main_route = Setting::grab('main_route'); $admin_route = Setting::grab('admin_route'); include __DIR__ . '/routes.php'; } elseif (Request::path() == 'tickets-install') { $this->loadTranslationsFrom(__DIR__ . '/Translations', 'ticketit'); $this->loadViewsFrom(__DIR__ . '/Views', 'ticketit'); $this->publishes([__DIR__ . '/Migrations' => base_path('database/migrations')], 'db'); Route::get('/tickets-install', ['middleware' => 'auth', 'uses' => 'Kordy\\Ticketit\\Controllers\\InstallController@index']); Route::post('/tickets-install', ['middleware' => 'auth', 'uses' => 'Kordy\\Ticketit\\Controllers\\InstallController@setup']); } }
<?php use Illuminate\Support\Facades\Route; Route::group(['prefix' => 'slots', 'middleware' => ['riot.router', 'riot.resource', 'riot.keys']], function () { Route::get('{slot}', 'ResourcesController@show'); Route::post('{slot}', 'ResourcesController@store'); // These routes require K1 Route::group(['middleware' => ['riot.k1auth']], function () { Route::get('{slot}/keys/k2', 'KeysController@retrieveK2'); Route::put('{slot}/keys/k2', 'KeysController@installK2'); }); });
Route::get('sortOverzicht/{by}/{direction}', ['as' => 'sort_overzicht', 'uses' => 'ArtController@sortOverzicht']); Route::get('filter_overzicht/{by}/{bottom}/{top}', ['as' => 'filter_overzicht', 'uses' => 'ArtController@filterOverzicht']); Route::get('clear', ['as' => 'clear', 'uses' => 'ArtController@clearFilter']); //Auction routes Route::get('myauctions', ['as' => 'myauctions', 'uses' => 'AuctionController@myauctions']); Route::get('mywatchlist', ['as' => 'mywatchlist', 'uses' => 'AuctionController@mywatchlist']); Route::get('addwatchlist/{art_id}', ['as' => 'addwatchlist', 'uses' => 'AuctionController@storewatchlist']); Route::get('clearwatchlist/', ['as' => 'clearwatchlist', 'uses' => 'AuctionController@clearwatchlist']); Route::post('deletewatchlist/', ['as' => 'deletewatchlist', 'uses' => 'AuctionController@deletewatchlist']); Route::get('mybids', ['as' => 'mybids', 'uses' => 'AuctionController@mybids']); Route::post('addbid/{art_id}', ['as' => 'addbid', 'uses' => 'AuctionController@storebid']); Route::get('buy/{art_id}', ['as' => 'buy', 'uses' => 'AuctionController@buy']); Route::get('addauction', ['as' => 'addauction', 'uses' => 'AuctionController@add']); Route::post('addauction', ['as' => 'postauction', 'uses' => 'AuctionController@store']); //// Auth routes... //// Registration routes... Route::get('auth/register', ['as' => 'register', 'uses' => 'Auth\\AuthController@getRegister']); Route::post('auth/register', ['as' => 'postregister', 'uses' => 'Auth\\AuthController@postRegister']); //// Login routes... Route::get('auth/login', ['as' => 'login', 'uses' => 'Auth\\AuthController@getLogin']); Route::post('auth/login', ['as' => 'postlogin', 'uses' => 'Auth\\AuthController@postLogin']); Route::get('auth/logout', ['as' => 'logout', 'uses' => 'Auth\\AuthController@getLogout']); //// Profile routes Route::get('myprofile', ['as' => 'profile', 'uses' => 'HelpController@profile']); // Password reset link request routes... Route::get('password/email', ['as' => 'emailreset', 'uses' => 'Auth\\PasswordController@getEmail']); Route::post('password/email', ['as' => 'postemailreset', 'uses' => 'Auth\\PasswordController@postEmail']); // Password reset routes... Route::get('password/reset/{token}', ['as' => 'passwordreset', 'uses' => 'Auth\\PasswordController@getReset']); Route::post('password/reset', ['as' => 'postpasswordreset', 'uses' => 'Auth\\PasswordController@postReset']); });
Route::get('/love-local/kids-hope-usa', ['as' => 'kidsHope', 'uses' => 'MissionsController@kidsHope']); Route::get('/love-local/{organization}', ['as' => 'localOutreachOrganization', 'uses' => 'MissionsController@organization']); // Staff Route::get('/staff', ['as' => 'staff', 'uses' => 'StaffController@index']); Route::get('/staff/directory', ['as' => 'staffDirectory', 'uses' => 'StaffController@directory']); Route::get('/staff/{staff}', ['as' => 'staffDetail', 'uses' => 'StaffController@detail']); // Next Steps Route::get('/core', ['as' => 'core', 'uses' => 'MainController@defaultPage']); Route::get('/baptism', ['as' => 'baptism', 'uses' => 'MainController@defaultPage']); Route::get('/give', ['as' => 'give', 'uses' => 'MainController@defaultPage']); Route::get('/next-steps', ['as' => 'nextSteps', 'uses' => 'MinistriesController@defaultMinistryPage']); Route::get('/salvation', ['as' => 'salvation', 'uses' => 'MainController@defaultPage']); Route::get('/serve', ['as' => 'serve', 'uses' => 'VolunteerController@index']); Route::get('/serve/opportunities', ['as' => 'volunteerPositions', 'uses' => 'VolunteerController@positions']); Route::get('/serve/opportunities.json', ['as' => 'volunteerPositions', 'uses' => 'VolunteerController@positionsJson']); Route::post('/serve/opportunities', ['as' => 'sendVolunteerMessage', 'uses' => 'VolunteerController@sendMessage']); // General pages Route::get('/what-to-expect', ['as' => 'whatToExpect', 'uses' => 'MainController@defaultPage']); Route::get('/beliefs-and-values', ['as' => 'beliefs', 'uses' => 'MainController@defaultPage']); Route::get('/h4h', ['as' => 'h4h', 'uses' => 'MainController@defaultPage']); Route::get('/fasting', ['as' => 'fasting', 'uses' => 'MainController@defaultPage']); Route::get('/weddings', ['as' => 'weddings', 'uses' => 'MainController@defaultPage']); Route::get('/stephen', ['as' => 'stephen', 'uses' => 'MainController@defaultPage']); Route::get('/summit', ['as' => 'summit', 'uses' => 'MainController@defaultPage']); Route::get('/updates', ['as' => 'updates', 'uses' => 'MainController@defaultPage']); Route::get('/jobs', ['as' => 'jobs', 'uses' => 'MainController@defaultPage']); Route::get('/stable-boy', ['as' => 'stableBoy', 'uses' => 'MainController@defaultPage']); // Bible plan Route::get('/bible-plan', ['as' => 'biblePlan', 'uses' => 'BiblePlanController@index']); Route::get('/bible-plan/{month}-{day}', ['as' => 'biblePlanDay', 'uses' => 'BiblePlanController@day']); // iCampus
| kernel and includes session state, CSRF protection, and more. | */ Route::group(['middleware' => ['throttle:60,1']], function () { Route::post('/prod/scroll', 'FrontController@scrollProd'); }); Route::group(['middleware' => ['web']], function () { Route::get('/', ['as' => 'home', 'uses' => 'FrontController@index']); Route::get('/prod/{id}/{slug?}', 'FrontController@showProduct'); Route::get('mentions', 'FrontController@mentions'); Route::get('/cat/{id}/{slug?}', 'FrontController@showProductByCategory'); Route::get('/tag/{id}/{tag?}', 'FrontController@showProductByTags'); Route::get('contact', 'FrontController@showContact'); Route::post('storeContact', 'FrontController@storeContact'); Route::post('/prod', 'FrontController@orderProduct'); Route::post('/prod/modif', 'FrontController@orderModif'); Route::any('login', 'LoginController@login'); Route::get('logout', 'LoginController@logout'); Route::group(['middleware' => ['auth']], function () { Route::get('moncompte', 'FrontController@monCompte'); Route::get('moncompte/detailOrder/{id}', 'FrontController@detailOrder'); Route::get('panier', 'FrontController@showPanier'); Route::get('panier/validate', 'FrontController@validatePanier'); Route::get('panier/confirmate', 'FrontController@confirmatePanier'); }); Route::group(['middleware' => ['auth', 'admin']], function () { Route::resource('product', 'ProductController'); Route::get('product/{id}/status', 'ProductController@status'); Route::get('history', 'ProductController@history'); Route::resource('category', 'CategoryController'); });
Route::get('switch_locale/{locale}', array('as' => 'admin_switch_locale', 'uses' => 'Frozennode\\Administrator\\AdminController@switchLocale')); //The route group for all other requests needs to validate admin, model, and add assets Route::group(array('middleware' => ['Frozennode\\Administrator\\Http\\Middleware\\ValidateModel', 'Frozennode\\Administrator\\Http\\Middleware\\PostValidate']), function () { //Model Index Route::get('{model}', array('as' => 'admin_index', 'uses' => 'Frozennode\\Administrator\\AdminController@index')); //New Item Route::get('{model}/new', array('as' => 'admin_new_item', 'uses' => 'Frozennode\\Administrator\\AdminController@item')); //Update a relationship's items with constraints Route::post('{model}/update_options', array('as' => 'admin_update_options', 'uses' => 'Frozennode\\Administrator\\AdminController@updateOptions')); //Display an image or file field's image or file Route::get('{model}/file', array('as' => 'admin_display_file', 'uses' => 'Frozennode\\Administrator\\AdminController@displayFile')); //Updating Rows Per Page Route::post('{model}/rows_per_page', array('as' => 'admin_rows_per_page', 'uses' => 'Frozennode\\Administrator\\AdminController@rowsPerPage')); //Get results Route::post('{model}/results', array('as' => 'admin_get_results', 'uses' => 'Frozennode\\Administrator\\AdminController@results')); //Custom Model Action Route::post('{model}/custom_action', array('as' => 'admin_custom_model_action', 'uses' => 'Frozennode\\Administrator\\AdminController@customModelAction')); //Get Item Route::get('{model}/{id}', array('as' => 'admin_get_item', 'uses' => 'Frozennode\\Administrator\\AdminController@item')); //File Uploads Route::post('{model}/{field}/file_upload', array('as' => 'admin_file_upload', 'uses' => 'Frozennode\\Administrator\\AdminController@fileUpload')); //Save Item Route::post('{model}/{id?}/save', array('as' => 'admin_save_item', 'uses' => 'Frozennode\\Administrator\\AdminController@save')); //Delete Item Route::post('{model}/{id}/delete', array('as' => 'admin_delete_item', 'uses' => 'Frozennode\\Administrator\\AdminController@delete')); //Custom Item Action Route::post('{model}/{id}/custom_action', array('as' => 'admin_custom_model_item_action', 'uses' => 'Frozennode\\Administrator\\AdminController@customModelItemAction')); //Batch Delete Item Route::post('{model}/batch_delete', array('as' => 'admin_batch_delete', 'uses' => 'Frozennode\\Administrator\\AdminController@batchDelete')); }); });
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | */ Route::group(['prefix' => 'v1', 'namespace' => 'Api'], function () { Route::post('login', 'AuthController@login'); Route::post('register', 'AuthController@register'); Route::group(['middleware' => 'jwt.auth'], function () { Route::get('refresh', 'AuthController@refresh'); Route::group(['prefix' => 'user'], function () { Route::get('profile', 'UserController@getProfile'); Route::post('profile', 'UserController@postProfile'); }); }); });
| It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ use Illuminate\Support\Facades\Route; Route::get('{locale?}/', ['as' => '/', "uses" => "HomeController@home", "middleware" => ["lang"]]); Route::get('/', ['as' => '/nl', "uses" => "HomeController@start"]); Route::group(["prefix" => "{locale}", "middleware" => ["lang"]], function () { Route::get("about-me", ['as' => "about-me", "uses" => "HomeController@aboutMe"]); Route::get("contact", ['as' => "contact", "uses" => "HomeController@contact"]); Route::get("portfolio", ["as" => "portfolio", "uses" => "PortfolioController@index"]); Route::group(["prefix" => "auth"], function () { Route::get("login", ['uses' => 'Auth\\AuthController@login', 'as' => 'auth/login']); Route::post("authenticate", ['uses' => 'Auth\\AuthController@authenticate', 'as' => 'auth/authenticate']); Route::get("reset", ['uses' => 'Auth\\AuthController@reset', 'as' => 'auth/reset']); Route::post("register", ['uses' => 'Auth\\AuthController@register', 'as' => 'auth/register']); Route::get("logout", ['uses' => 'Auth\\AuthController@logout', 'as' => 'auth/logout']); Route::get("facebook", ['uses' => 'Auth\\AuthController@facebook', 'as' => 'auth/facebook']); }); }); Route::group(['prefix' => 'admin', 'middleware' => ['auth', "role:Admin"], 'namespace' => 'Admin'], function () { Route::get("/home", ['uses' => 'HomeController@home', 'as' => 'admin/home']); Route::resource("education", "EducationController"); Route::resource("users", "UsersController"); Route::resource("settings", "SettingsController"); Route::group(["prefix" => "mail"], function () { Route::get("{mailbox?}", "MailController@index"); Route::get("{mailbox}/{mail}", "MailController@mail"); }); Route::group(["prefix" => "portfolio"], function () { Route::resource("projects", "ProjectsController");
// Log Management Routes Route::post('logs/{logs}/mark-read', ['as' => 'admin.logs.mark-read', 'uses' => 'LogController@markRead']); Route::resource('logs', 'LogController', ['only' => ['index', 'show', 'destroy'], 'names' => ['index' => 'admin.logs.index', 'show' => 'admin.logs.show', 'destroy' => 'admin.logs.destroy']]); // End Log Management Routes // User Management Routes Route::group(['namespace' => 'User'], function () { Route::resource('users', 'UserController', ['names' => ['index' => 'admin.users.index', 'create' => 'admin.users.create', 'store' => 'admin.users.store', 'show' => 'admin.users.show', 'edit' => 'admin.users.edit', 'update' => 'admin.users.update', 'destroy' => 'admin.users.destroy']]); Route::patch('users/{users}/password', ['as' => 'admin.users.password.update', 'uses' => 'PasswordController@update']); Route::post('users/{users}/check-access', ['as' => 'admin.users.check-access', 'uses' => 'AccessController@postCheck']); }); // End User Management Routes // Group Management Routes Route::resource('roles', 'RoleController', ['names' => ['index' => 'admin.roles.index', 'create' => 'admin.roles.create', 'store' => 'admin.roles.store', 'show' => 'admin.roles.show', 'edit' => 'admin.roles.edit', 'update' => 'admin.roles.update', 'destroy' => 'admin.roles.destroy']]); // Archive Routes Route::group(['namespace' => 'Archive'], function () { // Asset Archive Routes Route::post('archive/assets/{assets}/restore', ['as' => 'admin.archive.assets.restore', 'uses' => 'AssetController@restore']); Route::resource('archive/assets', 'AssetController', ['only' => ['index', 'show', 'destroy'], 'names' => ['index' => 'admin.archive.assets.index', 'show' => 'admin.archive.assets.show', 'destroy' => 'admin.archive.assets.destroy']]); // Work Order Archive Routes Route::post('archive/work-orders/{work_orders}/restore', ['as' => 'admin.archive.work-orders.restore', 'uses' => 'WorkOrderController@restore']); Route::resource('archive/work-orders', 'WorkOrderController', ['only' => ['index', 'show', 'destroy'], 'names' => ['index' => 'admin.archive.work-orders.index', 'show' => 'admin.archive.work-orders.show', 'destroy' => 'admin.archive.work-orders.destroy']]); // Inventory Archive Routes Route::post('archive/inventory/{inventory}/restore', ['as' => 'admin.archive.inventory.restore', 'uses' => 'InventoryController@restore']); Route::resource('archive/inventory', 'InventoryController', ['only' => ['index', 'show', 'destroy'], 'names' => ['index' => 'admin.archive.inventory.index', 'show' => 'admin.archive.inventory.show', 'destroy' => 'admin.archive.inventory.destroy']]); }); // End Archive Routes // Setting Routes Route::group(['namespace' => 'Setting'], function () { Route::resource('settings/site', 'SiteController', ['only' => ['index', 'store'], 'names' => ['index' => 'admin.settings.site.index', 'store' => 'admin.settings.site.store']]); }); // End Setting Routes
Route::post('/' . config('app.admin_route_name') . '/settings', 'Admin\\SettingsController@index'); Route::get('/' . config('app.admin_route_name') . '/notifications', 'Admin\\NotificationController@index'); Route::get('/' . config('app.admin_route_name') . '/notifications/count', 'Admin\\NotificationController@count'); Route::get('/' . config('app.admin_route_name') . '/notifications/seen', 'Admin\\NotificationController@seen'); Route::get('/' . config('app.admin_route_name') . '/pages', 'Admin\\PageController@index')->name('pages'); Route::get('/' . config('app.admin_route_name') . '/page/create', 'Admin\\PageController@create'); Route::post('/' . config('app.admin_route_name') . '/page/create', 'Admin\\PageController@create'); Route::get('/' . config('app.admin_route_name') . '/page/edit/{id}', 'Admin\\PageController@edit'); Route::post('/' . config('app.admin_route_name') . '/page/edit/{id}', 'Admin\\PageController@edit'); Route::get('/' . config('app.admin_route_name') . '/page/delete/{id}', 'Admin\\PageController@delete'); Route::post('/' . config('app.admin_route_name') . '/page/delete', 'Admin\\PageController@delete'); Route::get('/' . config('app.admin_route_name') . '/page/export', 'Admin\\PageController@export'); Route::get('/' . config('app.admin_route_name') . '/albums', 'Admin\\AlbumController@index')->name('albums'); Route::get('/' . config('app.admin_route_name') . '/album/create', 'Admin\\AlbumController@create'); Route::post('/' . config('app.admin_route_name') . '/album/create', 'Admin\\AlbumController@create'); Route::get('/' . config('app.admin_route_name') . '/album/edit/{id}', 'Admin\\AlbumController@edit'); Route::post('/' . config('app.admin_route_name') . '/album/edit/{id}', 'Admin\\AlbumController@edit'); Route::get('/' . config('app.admin_route_name') . '/album/delete/{id}', 'Admin\\AlbumController@delete'); Route::post('/' . config('app.admin_route_name') . '/album/delete', 'Admin\\AlbumController@delete'); Route::get('/' . config('app.admin_route_name') . '/album/export', 'Admin\\AlbumController@export'); Route::get('/' . config('app.admin_route_name') . '/gallery', 'Admin\\GalleryController@index')->name('gallery'); Route::get('/' . config('app.admin_route_name') . '/gallery/create', 'Admin\\GalleryController@create'); Route::post('/' . config('app.admin_route_name') . '/gallery/create', 'Admin\\GalleryController@create'); Route::get('/' . config('app.admin_route_name') . '/gallery/edit/{id}', 'Admin\\GalleryController@edit'); Route::post('/' . config('app.admin_route_name') . '/gallery/edit/{id}', 'Admin\\GalleryController@edit'); Route::get('/' . config('app.admin_route_name') . '/gallery/delete/{id}', 'Admin\\GalleryController@delete'); Route::post('/' . config('app.admin_route_name') . '/gallery/delete', 'Admin\\GalleryController@delete'); Route::get('/' . config('app.admin_route_name') . '/gallery/approve/{id}', 'Admin\\GalleryController@approve'); Route::get('/' . config('app.admin_route_name') . '/gallery/disapprove/{id}', 'Admin\\GalleryController@disapprove'); Route::get('/' . config('app.admin_route_name') . '/gallery/export', 'Admin\\GalleryController@export'); });
return view('welcome'); }); //Testing Routes Route::get('/test-oauth', function () { return view('test.integracaoOAuth'); }); Route::get('/test-payment', function () { return view('test.payment'); }); //User Routes Route::get('user/info', ['middleware' => 'oauth', function () { return Authorizer::getResourceOwnerId(); }]); //Products Routes Route::get('products/info', function () { return response()->json(Product::all()); }); //Laravel Socialite Login, Data and Login Routes Route::get('service/{providerName}/login', 'ServiceAuthController@redirectToProvider'); Route::get('service/{providerName}/data', 'ServiceAuthController@handleProviderData'); //Payment Routes Route::post('payment/{service}/post', 'PaymentController@postPayment'); Route::get('payment/{service}/status', 'PaymentController@getPaymentStatus'); Route::get('payment/{service}/cancel', 'PaymentController@getPaymentCancel'); //Oauth Routes Route::post('service/login', function () { return response()->json(Authorizer::issueAccessToken()); }); Route::post('oauth/access_token', function () { return response()->json(Authorizer::issueAccessToken()); });