patch() public static method

Register a new PATCH route with the router.
public static patch ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route
$uri string
$action Closure | array | string | null
return Illuminate\Routing\Route
Beispiel #1
0
 public function setRoutes()
 {
     $pages = collect(\Config::get('pages'));
     foreach ($pages as $page) {
         if (!$page['uses']) {
             continue;
         }
         switch ($page['method']) {
             case 'get':
                 \Route::get($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
                 break;
             case 'post':
                 \Route::post($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
                 break;
             case 'patch':
                 \Route::patch($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
                 break;
             case 'delete':
                 \Route::patch($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
                 break;
             case 'any':
                 \Route::any($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
         }
     }
 }
Beispiel #2
0
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| 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.
|
*/
// Authentication Routes...
Route::get('auth/login', 'Auth\\AuthController@login');
Route::get('auth/logout', 'Auth\\AuthController@getLogout');
Route::group(['middleware' => 'pjax'], function () {
    Route::get('/', ['as' => 'lots.index', 'uses' => 'LotController@index']);
    Route::get('/history', ['as' => 'lots.history', 'uses' => 'LotController@history']);
    Route::get('/profile', ['as' => 'profile.index', 'uses' => 'ProfileController@index']);
    Route::get('/profile/lots', ['as' => 'profile.lots', 'uses' => 'ProfileController@lots']);
    Route::patch('/profile/update/tradeUrl', ['as' => 'profile.update.tradeUrl', 'uses' => 'ProfileController@updateTradeURL']);
});
Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'acl'], 'can' => 'admin.access'], function () {
    Route::get('/', 'AdminController@index');
});
Beispiel #3
0
        Route::get('email', ['as' => 'password.email', 'uses' => 'PasswordController@getEmail']);
        Route::post('email', ['as' => 'password.email', 'uses' => 'PasswordController@postEmail']);
        Route::get('reset/{token}', ['as' => 'password.reset', 'uses' => 'PasswordController@getReset']);
        Route::post('reset', ['as' => 'password.reset', 'uses' => 'PasswordController@postEmail']);
    });
});
// API routes
Route::group(['prefix' => 'api', 'namespace' => 'Api'], function () {
    // DataTables
    Route::get('table/article', ['as' => 'api.table.article', 'uses' => 'DataTableController@getArticles']);
    Route::get('table/category', ['as' => 'api.table.category', 'uses' => 'DataTableController@getCategories']);
    Route::get('table/language', ['as' => 'api.table.language', 'uses' => 'DataTableController@getLanguages']);
    Route::get('table/user', ['as' => 'api.table.user', 'uses' => 'DataTableController@getUsers']);
});
// Admin routes
Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => 'auth'], function () {
    // GET
    Route::get('/', ['as' => 'admin.root', 'uses' => 'DashboardController@index']);
    Route::get('setting', ['as' => 'admin.setting.index', 'uses' => 'SettingController@getSettings']);
    // POST
    Route::post('language/change', ['as' => 'admin.language.change', 'uses' => 'LanguageController@postChange']);
    Route::post('page/order', ['as' => 'admin.page.order', 'uses' => 'PageController@postOrder']);
    // PATCH
    Route::patch('setting/{setting}', ['as' => 'admin.setting.update', 'uses' => 'SettingController@patchSettings']);
    // Resources
    Route::resource('article', 'ArticleController');
    Route::resource('category', 'CategoryController');
    Route::resource('language', 'LanguageController');
    Route::resource('page', 'PageController');
    Route::resource('user', 'UserController');
});
Beispiel #4
0
 /**
  * Notes Controller
  */
 Route::get('/notes/create', ['as' => 'notes.create', 'uses' => 'NotesController@create']);
 Route::post('/notes/create', ['as' => 'notes.create', 'uses' => 'NotesController@store']);
 Route::get('/notes', ['as' => 'notes.index', 'uses' => 'NotesController@index']);
 Route::get('/notes/{id}/download', ['as' => 'notes.download', 'uses' => 'NotesController@download']);
 Route::get('/notes/{slug}', ['as' => 'notes.show', 'uses' => 'NotesController@show']);
 /**
  * Quotes Controller
  */
 Route::get('/quotes/create', ['as' => 'quotes.create', 'uses' => 'QuotesController@create']);
 Route::post('/quotes/create', ['as' => 'quotes.create', 'uses' => 'QuotesController@store']);
 Route::get('/quotes', ['as' => 'quotes.index', 'uses' => 'QuotesController@index']);
 Route::get('/quotes/{id}/edit', ['as' => 'quotes.edit', 'uses' => 'QuotesController@edit']);
 Route::patch('/quotes/{id}/edit', ['as' => 'quotes.update', 'uses' => 'QuotesController@update']);
 Route::get('/quotes/{id}/setasqotd', ['as' => 'quotes.setasqotd', 'uses' => 'QuotesController@setasqotd']);
 /**
  * OrganisationsController
  */
 Route::get('/organisations', ['as' => 'org.index', 'uses' => 'OrganisationsController@index']);
 Route::get('/org/create', ['as' => 'org.create', 'uses' => 'OrganisationsController@create']);
 Route::post('/org/create', ['as' => 'org.create', 'uses' => 'OrganisationsController@store']);
 Route::delete('/org/{id}', ['as' => 'org.delete', 'uses' => 'OrganisationsController@destroy']);
 /**
  * NewsLetter Controller
  */
 Route::post('/newsletter/subscribe', ['as' => 'newsletter.subscribe', 'uses' => 'NewsletterController@subscribe']);
 Route::get('/newsletter', ['as' => 'newsletter.index', 'uses' => 'NewsletterController@index']);
 Route::get('/newsletter/{name}', ['as' => 'newsletter.show', 'uses' => 'NewsletterController@show']);
 Route::get('/newsletter/{name}/download', ['as' => 'newsletter.download', 'uses' => 'NewsletterController@download']);
Beispiel #5
0
Route::get('auth/verify/{code}', 'Auth\\AuthController@verifyEmail');
// Password reset
Route::get('password/email', 'Auth\\PasswordController@getEmail')->name('auth.password');
Route::post('password/email', 'Auth\\PasswordController@postEmail');
Route::get('password/reset/{token}', 'Auth\\PasswordController@getReset');
Route::post('password/reset', 'Auth\\PasswordController@postReset');
// Social
Route::get('auth/social/{provider}', 'Auth\\AuthController@redirectToProvider')->name('social.redirect');
Route::get('auth/social/{provider}/callback', 'Auth\\AuthController@handleProviderCallback')->name('social.handle');
// Profile
Route::get('profile', 'ProfilesController@show')->name('profile.my');
Route::get('profile/create', 'ProfilesController@create')->name('profile.create');
Route::post('profile/upload', 'ProfilesController@upload')->name('profile.upload');
Route::get('profile/{id}/edit', 'ProfilesController@edit')->name('profile.edit')->where('id', '[0-9]+');
Route::match(['get', 'post'], 'profile/{id}/edit/settings', 'ProfilesController@editSettings')->name('profile.edit.settings')->where('id', '[0-9]+');
Route::patch('profile/{id}/update', 'ProfilesController@update')->name('profile.update')->where('id', '[0-9]+');
Route::get('profile/{id?}', 'ProfilesController@show')->name('profile.display')->where('id', '[0-9]+');
// Settings
Route::get('settings/account', function () {
    return view('settings.account');
})->name('settings.account');
Route::get('settings/notifications', function () {
    return view('settings.notifications');
})->name('settings.notifications');
// TBD
Route::get('/tbd', function () {
    return view('tbd');
})->name('tbd');
// Dashboard
Route::get('/dashboard', function () {
    return view('dashboard');
Beispiel #6
0
    Route::post('orders/update/{id}', ['as' => 'orders.update', 'uses' => 'OrdersController@update']);
    Route::get('cupoms', ['as' => 'cupoms.index', 'uses' => 'CupomsController@index']);
    Route::get('cupoms/create', ['as' => 'cupoms.create', 'uses' => 'CupomsController@create']);
    Route::post('cupoms/store', ['as' => 'cupoms.store', 'uses' => 'CupomsController@store']);
    Route::get('cupoms/show/{id}', ['as' => 'cupoms.show', 'uses' => 'CupomsController@show']);
    Route::get('cupoms/edit/{id}', ['as' => 'cupoms.edit', 'uses' => 'CupomsController@edit']);
    Route::post('cupoms/update/{id}', ['as' => 'cupoms.update', 'uses' => 'CupomsController@update']);
});
Route::group(['prefix' => 'customer', 'as' => 'customer.'], function () {
    Route::get('order', ['as' => 'order.index', 'uses' => 'CheckoutController@index']);
    Route::get('order/create', ['as' => 'order.create', 'uses' => 'CheckoutController@create']);
    Route::post('order/store', ['as' => 'order.store', 'uses' => 'CheckoutController@store']);
});
Route::group(['middleware' => 'cors'], function () {
    Route::post('oauth/access_token', function () {
        return Response::json(Authorizer::issueAccessToken());
    });
    Route::group(['prefix' => 'api', 'middleware' => 'oauth', 'as' => 'api.'], function () {
        //Rotas isoladas devem vir antes dos resources!
        Route::get('user/authenticated', 'UserController@authenticated');
        Route::group(['prefix' => 'teste', 'middleware' => 'oauth', 'as' => 'teste.'], function () {
        });
        Route::group(['prefix' => 'client', 'middleware' => 'oauth.checkrole:client', 'as' => 'client.'], function () {
            Route::resource('order', 'Api\\Client\\ClientCheckoutController', ['except' => ['create', 'edit', 'destroy']]);
        });
        Route::group(['prefix' => 'deliveryman', 'middleware' => 'oauth.checkrole:deliveryman', 'as' => 'deliveryman.'], function () {
            Route::resource('order', 'Api\\Deliveryman\\DeliverymanCheckoutController', ['only' => ['index', 'show']]);
            Route::patch('order/{id}/update-status', ['uses' => 'Api\\Deliveryman\\DeliverymanCheckoutController@updateStatus', 'as' => 'orders.update_status']);
        });
    });
});
Beispiel #7
0
    Route::delete('adverts/{id}', ['as' => 'advert.destroy', 'uses' => 'AdvertsController@destroy']);
    Route::delete('user/delete/{id}', ['as' => 'user.destroy', 'uses' => 'UserController@destroy']);
    Route::delete('tags/{name}', ['as' => 'tags.destroy', 'uses' => 'TagsController@destroy']);
    Route::post('admin/users/give/{id}', ['as' => 'admin.give', 'uses' => 'UserController@giveAdmin']);
    Route::post('admin/users/take/{id}', ['as' => 'admin.take', 'uses' => 'UserController@takeAdmin']);
    Route::get('tags/{tags}', 'TagsController@show');
    Route::get('adverts', 'AdvertsController@index');
    Route::get('adverts/{id}', 'AdvertsController@show');
    Route::get('/user/edit/{id}', 'UserController@edit');
    Route::put('/user/edit/{id}', 'UserController@update');
    Route::patch('/user/edit/{id}', 'UserController@update');
    Route::get('user/edit/password/{id}', 'UserController@editPassword');
    Route::put('user/edit/password/{id}', 'UserController@updatePassword');
    Route::patch('user/edit/password/{id}', 'UserController@updatePassword');
    Route::get('/user/show', 'UserController@show');
    Route::get('/admin/tags', 'TagsController@adminTags');
    Route::get('/admin/users', 'UserController@adminIndex');
    Route::get('/admin/adverts', 'AdvertsController@adminAdverts');
    Route::get('contact', ['as' => 'contact', 'uses' => 'ContactController@create']);
    Route::post('contact', ['as' => 'contact_store', 'uses' => 'ContactController@store']);
    Route::post('/adverts/message', ['as' => 'contact_advert_store', 'uses' => 'ContactController@advertStore']);
    //    Route::get('/adverts/{id}', ['as' => 'contact_advert', 'uses' => 'ContactController@advertStore']);
    Route::post('/search/', 'AdvertsController@searchAdverts');
    //Route::get('/search/', 'AdvertController@searchAdverts');
    Route::patch('adverts/expired/{id}', ['as' => 'advert.setExpired', 'uses' => 'AdvertsController@setExpired']);
    Route::patch('adverts/available/{id}', ['as' => 'advert.setAvailable', 'uses' => 'AdvertsController@setAvailable']);
});
//Route::group(['middleware' => 'web'], function () {
//    Route::auth();
//    Route::get('/home', 'HomeController@index');
//});
Beispiel #8
0
Route::group(['middleware' => ['web']], function () {
    // Profile Routes
    Route::get('/profile/{user}', 'ProfileController@show');
    Route::post('/user/search', 'UserController@search');
    //Album Routes
    Route::get('/albums/{album}', 'AlbumController@show');
    Route::post('profile/{user}/albums', 'AlbumController@store');
    Route::get('/albums/{album}/edit', 'AlbumController@edit');
    Route::patch('albums/{album}', 'AlbumController@update');
    Route::delete('/albums/{album}', 'AlbumController@delete');
    //Comment Routes
    Route::post('albums/{album}/comments', 'CommentController@store');
    Route::get('/comments/{comment}/edit', 'CommentController@edit');
    Route::patch('comments/{comment}', 'CommentController@update');
    Route::delete('/comments/{comment}', 'CommentController@delete');
    //Like Routes
    Route::post('albums/{album}/likes', 'LikeController@store');
    Route::delete('/likes/{like}', 'LikeController@unlike');
    //Photo Routes
    Route::post('uploads/{album}', 'PhotoController@store');
    Route::delete('/photos/{photo}', 'PhotoController@delete');
    //Settings
    Route::get('/settings', 'ProfileController@settings');
    Route::patch('/settings/update/{user}', 'ProfileController@updateDetails');
    //Image Splash Pages
    Route::get('/images/{photo}', 'PhotoController@show');
    //Auth
    Route::auth();
    Route::get('/', 'HomeController@index');
    Route::get('/home', 'HomeController@index');
});
Beispiel #9
0
    Route::get('/tiposProyectos/editar/{tipoProyecto}', 'TiposProyectosController@edit');
    Route::post('/tiposProyectos/actualizar/{tipoProyecto}', 'TiposProyectosController@update');
});
Route::group(array('prefix' => 'adminRoot'), function () {
    Route::get('/modulos', 'ModuloController@index');
    Route::get('/modulos/nuevo', 'ModuloController@create');
    Route::post('/modulos', 'ModuloController@store');
    Route::get('/modulos/editar/{modulo}', 'ModuloController@edit');
    Route::post('/modulos/{modulo}', 'ModuloController@update');
    //Importación de catálogos
    Route::get('/importar-catalogos', 'ImportaCatalogosController@index');
    Route::post('/importar', 'ImportaCatalogosController@importar');
});
Route::get('/proyectos', 'ProyectosController@index');
Route::get('/proyectos/importar', 'ImportarProyectoController@index');
Route::get('/proyectos/upload', 'ImportarProyectoController@postUpload');
Route::post('/proyectos/convertir', 'ImportarProyectoController@convertir');
Route::get('/proyectos/vista-previa', 'ImportarProyectoController@show');
Route::post('/proyectos/importar/', 'ImportarProyectoController@store');
//** Requisiciones **//
Route::group(array('prefix' => 'req', 'before' => 'auth'), function () {
    Route::get('/', 'RequisicionController@index');
    Route::get('/nueva', 'RequisicionController@create');
    Route::post('/store', 'RequisicionController@store');
    Route::get('/info/{id}', 'RequisicionController@show');
    Route::get('/articulos/agregar/{req_id}', 'ArticulosController@create');
    Route::post('/articulos/store', 'ArticulosController@store');
    Route::get('/articulos/{articulo}/editar', 'ArticulosController@edit');
    Route::patch('/articulos/{articulo}', 'ArticulosController@update');
    Route::delete('/articulos/{articulo}', 'ArticulosController@destroy');
});
Beispiel #10
0
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| 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.
|
*/
Route::get('/', 'HomesController@index');
Route::get('/profile', ['middleware' => 'auth', 'uses' => 'HomesController@profile']);
Route::patch('/profile', ['middleware' => 'auth', 'uses' => 'HomesController@editProfile']);
Route::get('/register', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@getRegister']);
Route::post('/register', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@postRegister']);
Route::get('/login', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@getLogin']);
Route::post('/login', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@postLogin']);
Route::get('/logout', ['middleware' => 'auth', 'uses' => 'Auth\\AuthController@getLogout']);
Route::resource('users', 'UsersController');
Beispiel #11
0
//Route::get('/media/{media}/edit',             ['as' => 'admin.media.edit' ,'uses' => 'MediaController@edit']);
Route::get('/media/{media_type}/{id}/edit', ['as' => 'media.type.edit', 'uses' => 'MediaController@edit']);
//add form
Route::get('/media/create', ['as' => 'admin.media.create', 'uses' => 'MediaController@selectMediaTypeBeforeCreate']);
Route::get('/media/{media_type}/create', ['as' => 'admin.media.media_type.create', 'uses' => 'MediaController@create']);
//modal views (for ng modal ui)
Route::get('/media/modal_select_media', ['as' => 'api.modal.select.media', 'uses' => 'MediaController@ngTemplateSelectMediaModal']);
//returns ng template view
//index for modal create media
Route::get('/media/modal_create_media', ['as' => 'api.modal.create.media', 'uses' => 'MediaController@ngTemplateSelectMediaCreate']);
//index for modal select mediaLibrary
//returns json object for ng modal view
Route::get('api/media/modal', ['as' => 'api.media.modal', 'uses' => 'MediaController@apiIndex']);
Route::get('api/media/modal/{media_type}', ['as' => 'api.media.modal.type', 'uses' => 'MediaController@apiIndex']);
Route::get('api/media/modaltest/{media_type}', 'MediaController@apiIndexOrder');
//index
Route::get('/media/all/data', ['as' => 'media.index.all.data', 'uses' => 'MediaController@indexAllData']);
#Route::get('/media/all',                       ['as' => 'media.index.all',             'uses' => 'MediaController@getIndexAll']);
//also used by ng directive form_media)field.html
Route::get('/media', ['as' => 'media.index', 'uses' => 'MediaController@getIndexAll']);
#even uit.. package
#Route::get('/media', ['as' => 'media.index' ,'uses' => 'MediaController@index']);
#Route::get('/media/{media_type}', 'MediaController@index');
//database
Route::post('/media', ['as' => 'media.store', 'uses' => 'MediaController@store']);
Route::patch('/media/{media}', ['as' => 'media.update', 'uses' => 'MediaController@update']);
//Route::put('/media/{media}',                  ['as' => '',                            'uses' => 'MediaController@update']);
Route::delete('/media', ['as' => 'media.destroy.bulk', 'uses' => 'MediaController@destroyBulk']);
Route::delete('/media/{media?}', ['as' => 'media.destroy', 'uses' => 'MediaController@destroy']);
//show uit cms
//Route::get('/media/{media}', ['as' => 'admin.media.show' ,'uses' => 'MediaController@show']);
Beispiel #12
0
    return view('home');
});
/// SEZGICRAFT HOME ///
Route::get('/sezgicraft', 'HomeController@index');
/// ARTICLES ///
Route::resource('sezgicraft/articles', 'ArticleController');
/// USERS ///
Route::get('sezgicraft/users', 'UserController@users');
Route::get('sezgicraft/users/{name}', 'UserController@show');
Route::post('sezgicraft/users/{name}/pp', 'UserController@uploadTn');
Route::post('sezgicraft/users/{name}/cv', 'UserController@uploadCv');
Route::post('sezgicraft/users/edit-profile/{id}', 'UserController@changeTheme');
/// COMMENTS ///
Route::post('sezgicraft/users/comment', 'CommentController@postComment');
/// PROFILE ///
Route::patch('sezgicraft/users/edit-profile/{id}', 'UserController@update');
Route::get('sezgicraft/users/edit-profile/{id}', 'UserController@editProfile');
/// FRIENDS ///
Route::get('sezgicraft/users/add-friend/{id}', 'FriendController@getAddFriend');
Route::get('sezgicraft/users/remove-friend/{id}', 'FriendController@getRemoveFriend');
/// GALLERY ///
Route::get('sezgicraft/photo-gallery', 'GalleryController@index');
Route::post('sezgicraft/photo-gallery/upload', 'GalleryController@uploadPicture');
Route::get('sezgicraft/video-gallery', 'GalleryController@vidIndex');
Route::post('sezgicraft/video-gallery/upload', 'GalleryController@uploadVideo');
/// APPLY ///
Route::post('sezgicraft/application', 'UserController@apply');
/// ADMIN ///
Route::get('sezgicraft/admin-panel', 'AdminController@index');
Route::get('sezgicraft/admin-panel/disable-user/{id}', 'AdminController@disableUser');
Route::get('sezgicraft/admin-panel/enable-user/{id}', 'AdminController@enableUser');
Beispiel #13
0
 Route::post('events', 'EventsController@store');
 Route::get('events/{events}', 'EventsController@show');
 Route::get('events/{events}/edit', 'EventsController@edit');
 Route::patch('events/{events}', 'EventsController@update');
 Route::delete('events/{events}', 'EventsController@destroy');
 Route::post('events/{events}/email', 'EventsController@sendMassEmail');
 //This is in pagescontroller because of the specific eventrequest that has
 //required fields - putting the publish method in pagescontroller gets around this
 Route::post('events/{events}/publish', 'PagesController@publish');
 Route::post('site/admin/toggleFeatured/{slug}', 'PagesController@siteAdminToggleFeatured');
 //This is an event entry form (hence the url) but it's really an Entry method
 Route::get('events/{events}/enter', 'EntryController@create');
 //Competitions
 Route::post('/competition/add', 'CompetitionController@store');
 Route::post('/competition/delete/{id}', 'CompetitionController@destroy');
 Route::patch('/competition/update/{id}', 'CompetitionController@update');
 //Details
 Route::post('/detail/add', 'DetailController@store');
 Route::post('/detail/delete/{id}', 'DetailController@destroy');
 //User pages
 Route::get('/user/events', 'PagesController@userEvents');
 Route::get('/user/entries', 'PagesController@userEntries');
 Route::get('/user/profile', 'PagesController@userProfile');
 //Questions
 Route::post('/question/add', 'QuestionController@store');
 Route::post('/question/delete/{id}', 'QuestionController@destroy');
 //Discounts
 Route::post('/discount/add', 'DiscountController@store');
 Route::post('/discount/delete/{id}', 'DiscountController@destroy');
 //Extras
 Route::post('/extras/add', 'ExtrasController@store');
Beispiel #14
0
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
/*Route::group(['middleware' => ['web']], function () {
    //
});*/
Route::group(['middleware' => 'web'], function () {
    Route::auth();
    Route::resource('projects', 'ProjectController');
    Route::resource('times', 'LoginController');
    Route::resource('tasks', 'TaskController');
    Route::get('/', 'ProjectController@index');
    Route::get('profile', 'UserController@profile');
    Route::resource('projects', 'ProjectController');
    Route::resource('users', 'UserController');
    Route::post('projects/{id}', 'ProjectController@sync');
    Route::post('projects/{id}/remove', 'ProjectController@desync');
    Route::post('start', 'LoginController@start');
    Route::post('stop', 'LoginController@stop');
    Route::post('tasks/{id}/create', 'TaskController@store');
    Route::patch('projects/{id}/upload', 'ProjectController@uploadPicture');
    Route::patch('users/{id}/upload', 'UserController@uploadPicture');
    Route::patch('times/{id}/update', 'LoginController@update');
    Route::patch('tasks/{id}/update', 'TaskController@update');
    Route::post('projects/{id}/update', 'ProjectController@updateSync');
    Route::get('projects/{id}/stats', 'ProjectController@stats');
    Route::get('users/{id}/archive/{year}/{month}', 'UserController@archive');
});
Beispiel #15
0
    /**
     * Facebook signup and authentication
     */
    Route::post('facebook', 'FacebookController@index');
    /**
     * Email
     */
    Route::get('email', 'EmailController@getEmail')->middleware('auth');
    Route::post('email/allow-change', 'EmailController@allowEmailChange')->middleware('throttle:2,1');
    Route::patch('email/change', 'EmailController@changeEmail');
    /**
     * Password
     */
    Route::patch('password/change', 'PasswordController@changePassword')->middleware('auth');
    Route::post('password/allow-recovery', 'PasswordController@allowPasswordRecovery')->middleware('throttle:2,1');
    Route::patch('password/recover', 'PasswordController@recoverPassword');
    /**
     * Async validation
     */
    Route::post('validate/uniqueness', 'AsyncValidationController@validateUniqueness');
    Route::post('validate/email-token', 'AsyncValidationController@validateEmailToken');
});
/**
 * Posts
 */
Route::group(['prefix' => 'posts', 'namespace' => 'Post'], function () {
    /**
     * Get all posts
     */
    Route::get('/', 'PostController@index');
    /**
Beispiel #16
0
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| 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.
|
*/
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['middleware' => 'web'], function () {
    Route::auth();
    Route::get('/', 'HomeController@index');
    Route::get('articles', 'ArticlesController@index');
    Route::get('articles/create', 'ArticlesController@create');
    Route::post('articles', 'ArticlesController@store');
    Route::patch('articles/{id}', 'ArticlesController@update');
    Route::get('articles/{id}/edit', 'ArticlesController@edit');
    Route::get('articles/{id}', 'ArticlesController@show');
    Route::get('resume', function () {
        return view('pages/resume');
    });
});
Beispiel #17
0
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| 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.
|
*/
Route::get('/', function () {
    return View::make('todos.welcome');
});
Route::get('/home', 'TodoListController@index');
Route::resource('todos', 'TodoListController');
Route::resource('todos.items', 'TodoItemController', ['except' => ['index']]);
Route::patch('/todos/{todos}/items/{items}/complete', ['as' => 'todos.items.complete', 'uses' => 'TodoItemController@complete']);
// Authentication routes...
//Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::get('auth/login', array('as' => 'auth.login', 'uses' => 'Auth\\AuthController@getLogin'));
Route::post('auth/login', 'Auth\\AuthController@postLogin');
Route::get('auth/logout', array('as' => 'auth.logout', 'uses' => 'Auth\\AuthController@getLogout'));
//Route::get('auth/logout', 'Auth\AuthController@getLogout');
// Registration routes...
Route::get('auth/register', array('as' => 'auth.register', 'uses' => 'Auth\\AuthController@getRegister'));
//Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\\AuthController@postRegister');
// Event::listen('illuminate.query', function($query){
// 	var_dump($query);
// });
     Route::get('permissions/{permissionId}/confirm-delete', ['as' => 'admin.permissions.confirm-delete', 'uses' => 'PermissionsController@getModalDelete']);
     Route::get('permissions/{permissionId}/delete', ['as' => 'admin.permissions.delete', 'uses' => 'PermissionsController@destroy']);
     Route::get('permissions/{permissionId}/enable', ['as' => 'admin.permissions.enable', 'uses' => 'PermissionsController@enable']);
     Route::get('permissions/{permissionId}/disable', ['as' => 'admin.permissions.disable', 'uses' => 'PermissionsController@disable']);
     // Route routes
     Route::get('routes/load', ['as' => 'admin.routes.load', 'uses' => 'RoutesController@load']);
     Route::post('routes/enableSelected', ['as' => 'admin.routes.enable-selected', 'uses' => 'RoutesController@enableSelected']);
     Route::post('routes/disableSelected', ['as' => 'admin.routes.disable-selected', 'uses' => 'RoutesController@disableSelected']);
     Route::post('routes/savePerms', ['as' => 'admin.routes.save-perms', 'uses' => 'RoutesController@savePerms']);
     Route::get('routes/search', ['as' => 'admin.routes.search', 'uses' => 'RoutesController@searchByName']);
     Route::post('routes/getInfo', ['as' => 'admin.routes.get-info', 'uses' => 'RoutesController@getInfo']);
     Route::post('routes', ['as' => 'admin.routes.store', 'uses' => 'RoutesController@store']);
     Route::get('routes', ['as' => 'admin.routes.index', 'uses' => 'RoutesController@index']);
     Route::get('routes/create', ['as' => 'admin.routes.create', 'uses' => 'RoutesController@create']);
     Route::get('routes/{routeId}', ['as' => 'admin.routes.show', 'uses' => 'RoutesController@show']);
     Route::patch('routes/{routeId}', ['as' => 'admin.routes.patch', 'uses' => 'RoutesController@update']);
     Route::put('routes/{routeId}', ['as' => 'admin.routes.update', 'uses' => 'RoutesController@update']);
     Route::delete('routes/{routeId}', ['as' => 'admin.routes.destroy', 'uses' => 'RoutesController@destroy']);
     Route::get('routes/{routeId}/edit', ['as' => 'admin.routes.edit', 'uses' => 'RoutesController@edit']);
     Route::get('routes/{routeId}/confirm-delete', ['as' => 'admin.routes.confirm-delete', 'uses' => 'RoutesController@getModalDelete']);
     Route::get('routes/{routeId}/delete', ['as' => 'admin.routes.delete', 'uses' => 'RoutesController@destroy']);
     Route::get('routes/{routeId}/enable', ['as' => 'admin.routes.enable', 'uses' => 'RoutesController@enable']);
     Route::get('routes/{routeId}/disable', ['as' => 'admin.routes.disable', 'uses' => 'RoutesController@disable']);
     // Audit routes
     Route::get('audit', ['as' => 'admin.audit.index', 'uses' => 'AuditsController@index']);
     Route::get('audit/purge', ['as' => 'admin.audit.purge', 'uses' => 'AuditsController@purge']);
     Route::get('audit/{userId}/replay', ['as' => 'admin.audit.replay', 'uses' => 'AuditsController@replay']);
     Route::get('audit/{userId}/show', ['as' => 'admin.audit.show', 'uses' => 'AuditsController@show']);
 });
 // End of ADMIN group
 // Template tests and demo routes
Beispiel #19
0
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| 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.
|
*/
Route::get('/', 'WelcomeController@index');
Route::post('/', 'WelcomeController@search');
Route::get('about', 'WelcomeController@about');
// Route::get('/e/', 'WelcomeController@index');
// // Route::get('/e/{slug}', 'EventController@index');
// // Route::get('/e/create', 'EventController@create');
Route::resource('/e', 'EventController');
Route::get('admin/profile/{name}', 'AdminController@showProfile');
Route::get('admin/profile/{name}/events', ['as' => 'profileEvents', 'uses' => 'AdminController@getEvents']);
Route::get('admin/events', 'AdminController@getEvents');
Route::get('admin/categories', 'AdminController@editCategories');
Route::patch('admin/categories/{name}', 'CategoryController@update');
Route::delete('admin/categories/{name}', 'AdminController@deleteCategory');
Route::patch('admin/updateAdmin/{id}', 'AdminController@updateAdmin');
Route::post('admin/categories', 'AdminController@addCategory');
Route::resource('/admin', 'AdminController');
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);
Beispiel #20
0
// catchall controllers
Route::controller("/notifications", "NotificationController");
Route::controller("/store", "StoreController");
Route::post("/users/check-username-availability", ["as" => "users.check-username-availability", "uses" => "UsersController@checkUsernameAvailability"]);
Route::post("/users/login", ["as" => "users.login", "uses" => "UsersController@login"]);
Route::delete("/users/logout", ["as" => "users.logout", "uses" => "UsersController@logout"]);
Route::get("/users/disabled", ["as" => "users.disabled", "uses" => "UsersController@disabled"]);
Route::resource('tournaments', 'TournamentsController');
Route::post("/tournaments/{tournament}/unregister", ["as" => "tournaments.unregister", "uses" => "TournamentsController@unregister"]);
Route::post("/tournaments/{tournament}/register", ["as" => "tournaments.register", "uses" => "TournamentsController@register"]);
// Forum controllers
Route::group(["prefix" => "forum"], function () {
    Route::get("/", ["as" => "forum.forums.index", "uses" => "Forum\\ForumsController@index"]);
    Route::get("{forums}", ["as" => "forum.forums.show", "uses" => "Forum\\ForumsController@show"]);
    Route::get("{forums}/topics/create", ["as" => "forum.topics.create", "uses" => "Forum\\TopicsController@create"]);
    Route::post("{forums}/topics/preview", ["as" => "forum.topics.preview", "uses" => "Forum\\TopicsController@preview"]);
    Route::post("{forums}/topics", ["as" => "forum.topics.store", "uses" => "Forum\\TopicsController@store"]);
    Route::get("t/{topics}", ["as" => "forum.topics.show", "uses" => "Forum\\TopicsController@show"]);
    Route::post("t/{topics}/reply", ["as" => "forum.topics.reply", "uses" => "Forum\\TopicsController@reply"]);
    Route::get("p/{posts}", ["as" => "forum.posts.show", "uses" => "Forum\\PostsController@show"]);
    Route::delete("p/{posts}", ["as" => "forum.posts.destroy", "uses" => "Forum\\PostsController@destroy"]);
    Route::patch("p/{posts}", ["as" => "forum.posts.update", "uses" => "Forum\\PostsController@update"]);
    Route::get("p/{posts}/edit", ["as" => "forum.posts.edit", "uses" => "Forum\\PostsController@edit"]);
    Route::get("p/{posts}/raw", ["as" => "forum.posts.raw", "uses" => "Forum\\PostsController@raw"]);
});
Route::put("/account/update-profile-cover", ["as" => "account.update-profile-cover", "uses" => "AccountController@updateProfileCover"]);
Route::put("/account/page", ["as" => "account.page", "uses" => "AccountController@updatePage"]);
// API
Route::controller("/api", "APIController");
Route::resource('post', 'PostController');
Route::resource('modding', 'ModdingPostController');
Beispiel #21
0
|
*/
//Treat merge as patch
$method = Request::getMethod();
if (\DreamFactory\Library\Utility\Enums\Verbs::MERGE === strtoupper($method)) {
    Request::setMethod(\DreamFactory\Library\Utility\Enums\Verbs::PATCH);
}
Route::get('/', 'SplashController@index');
Route::get('/setup', 'SplashController@createFirstUser');
Route::post('/setup', 'SplashController@createFirstUser');
Route::get('/setup_db', 'SplashController@setupDb');
Route::post('/setup_db', 'SplashController@setupDb');
$resourcePathPattern = '[0-9a-zA-Z-_@&\\#\\!=,:;\\/\\^\\$\\.\\|\\{\\}\\[\\]\\(\\)\\*\\+\\? ]+';
$servicePattern = '[_0-9a-zA-Z-.]+';
Route::group(['prefix' => 'api'], function () use($resourcePathPattern, $servicePattern) {
    Route::get('{version}/', 'RestController@index');
    Route::get('{version}/{service}/{resource?}', 'RestController@handleGET')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::post('{version}/{service}/{resource?}', 'RestController@handlePOST')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::put('{version}/{service}/{resource?}', 'RestController@handlePUT')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::patch('{version}/{service}/{resource?}', 'RestController@handlePATCH')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::delete('{version}/{service}/{resource?}', 'RestController@handleDELETE')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
});
Route::group(['prefix' => 'rest'], function () use($resourcePathPattern, $servicePattern) {
    Route::get('/', 'RestController@index');
    Route::get('{service}/{resource?}', 'RestController@handleV1GET')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::post('{service}/{resource?}', 'RestController@handleV1POST')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::put('{service}/{resource?}', 'RestController@handleV1PUT')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::patch('{service}/{resource?}', 'RestController@handleV1PATCH')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
    Route::delete('{service}/{resource?}', 'RestController@handleV1DELETE')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]);
});
Route::get('{storage}/{path}', 'StorageController@handleGET')->where(['storage' => $servicePattern, 'path' => $resourcePathPattern]);
Beispiel #22
0
Route::get('atenciones/listado', ['as' => 'lista-atenciones', 'uses' => 'AtentionController@atentions_list']);
Route::get('atenciones/lista', ['as' => 'lista-todas-atenciones', 'uses' => 'AtentionController@listAllAtentions']);
//Profecionales
Route::get('profecionales', ['as' => 'profecionales', 'uses' => 'MedicController@index']);
Route::get('profecionales/registrar', ['as' => 'crear-profecional', 'uses' => 'MedicController@create']);
Route::post('profecionales/registrar', ['as' => 'guarda-profecional', 'uses' => 'MedicController@store']);
Route::get('profecionales/listado', ['as' => 'lista-profecionales', 'uses' => 'MedicController@medics_list']);
Route::get('profecionales/lista', ['as' => 'lista-todos-profecionales', 'uses' => 'MedicController@listAllMedics']);
//Agenda
Route::get('agenda', ['as' => 'agenda', 'uses' => 'ShedulleController@index']);
Route::get('agenda/registrar/hora', ['as' => 'registrar-hora', 'uses' => 'ShedulleController@create']);
Route::post('agenda/registrar/hora', ['as' => 'save-reservation', 'uses' => 'ShedulleController@store']);
Route::get('agenda/valida/seleccion/{room}/{block}/{year}/{month}/{day}/{atention}/{medic}', ['as' => 'datos-hora-seleccionada', 'uses' => 'ShedulleController@dataSelection']);
Route::get('agenda/datos/tabla/{year}/{month}/{day}/{room}', ['as' => 'info-day-room', 'uses' => 'ShedulleController@dataOfDayInRoom']);
Route::get('agenda/ver/calendario', ['as' => 'ver-calendario', 'uses' => 'ShedulleController@showCalendar']);
Route::get('agenda/tabla/{year}/{month}/{day}/{room}/{medic}', ['as' => 'info-day-room2', 'uses' => 'ShedulleController@dataOfDayInRoom2']);
Route::get('reservation/all/data/{id}', ['as' => 'all-data-reservation', 'uses' => 'ReservationController@dataReservation']);
Route::patch('reservation/update/status/{id}', ['as' => 'cambia-estado', 'uses' => 'ReservationController@updateStatus']);
Route::post('reservation/delete/{id}', ['as' => 'delete-reservation', 'uses' => 'ShedulleController@destroy']);
Route::get('agrenda/impresion/dia/{year}/{month}/{day}/{room}', ['as' => 'print-day', 'uses' => 'ShedulleController@printDay']);
//Presupuesto
Route::get('presupuesto', ['as' => 'presupuesto', 'uses' => 'BudgetController@index']);
Route::get('presupuesto/elaborar', ['as' => 'crear-presupuesto', 'uses' => 'BudgetController@create']);
Route::post('presupuesto/save', ['as' => 'save-budget', 'uses' => 'BudgetController@store']);
Route::get('presupuesto/imprimir/{id}', ['as' => 'print-budget', 'uses' => 'BudgetController@printBudget']);
Route::get('presupuesto/lista', ['as' => 'budget-list', 'uses' => 'BudgetController@listOfBudgets']);
Route::get('ver/presupuesto/{id}', ['as' => 'show-budget', 'uses' => 'BudgetController@show']);
Route::post('confirm/budget/{id}', ['as' => 'confirm-budget', 'uses' => 'BudgetController@confirmBudget']);
Route::post('cancel/budget/{id}', ['as' => 'cancel-budget', 'uses' => 'BudgetController@cancelBudget']);
Route::get('/prueba', ['as' => 'prueba', 'uses' => 'ShedulleController@prueba']);
Route::get('/import/companies', ['as' => 'import-companies', 'uses' => 'importDataController@companies']);
Beispiel #23
0
| and give it the controller to call when that URI is requested.
|
*/
// Home page
Route::get('/', function () {
    if (Auth::check()) {
        return redirect()->action('ReminderController@index');
    } else {
        return view('spark::welcome');
    }
});
// Authenticated user routes
Route::group(['middleware' => 'auth'], function () {
    // Redirect home to reminder
    Route::get('home', function () {
        return redirect()->action('ReminderController@index');
    });
    // Reminders Section
    Route::group(['prefix' => 'reminder'], function () {
        // Create
        Route::get('create', 'ReminderController@create');
        Route::post('create', 'ReminderController@store');
        // List all
        Route::get('/', 'ReminderController@index');
        // Update
        Route::get('edit/{id}', 'ReminderController@edit');
        Route::patch('edit/{id}', 'ReminderController@update');
        // Delete
        Route::delete('delete/{id}', 'ReminderController@destroy');
    });
});
Beispiel #24
0
        Route::resource('attribute', 'AttributeController', ['except' => ['show']]);
        Route::get('attribute/search', ['as' => 'admin.type.{type_id}.search', 'uses' => 'AttributeController@search']);
    });
    Route::resource('category', 'CategoryController', ['except' => ['show']]);
    Route::group(['prefix' => 'good'], function () {
        Route::get('/search', 'GoodController@search');
        Route::patch('/sort', 'GoodController@sort');
        Route::get('/trash', ['as' => 'admin/good/trash', 'uses' => 'GoodController@trash']);
        Route::get('/{good}/restore', ['as' => 'admin/good/restore', 'uses' => 'GoodController@restore']);
        Route::delete('/{good}/force_destroy', ['as' => 'admin/good/force_destroy', 'uses' => 'GoodController@force_destroy']);
    });
    Route::resource('good', 'GoodController', ['except' => ['show']]);
    //评论管理
    Route::resource('comments', 'CommentsController');
    //评论
    Route::patch('/comments/{comments}/reply', ['as' => 'admin.comments.reply', 'uses' => 'CommentsController@reply']);
    //会员管理
    Route::resource('user', 'UserController');
    //物流运费
    Route::resource('express', 'ExpressController');
    //订单管理
    Route::resource('order', 'OrderController');
    //微信管理
    Route::group(['prefix' => 'wechat'], function () {
        Route::get('/get_menu', ['uses' => 'WechatController@get_menu']);
        Route::put('/set_menu', ['uses' => 'WechatController@set_menu']);
        Route::get('/api_config', ['uses' => 'WechatController@api_config']);
        Route::put('/set_config', ['uses' => 'WechatController@set_config']);
    });
});
//Route::get('/','Admin\IndexController@index');
Beispiel #25
0
| 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.
|
*/
/*
    //
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['middleware' => ['web']], function () {
    Route::get('/', ['as' => 'home.index', 'uses' => 'HomeController@index']);
    Route::get('about', ['as' => 'about.index', 'uses' => 'AboutController@index']);
    Route::get('posts', ['as' => 'posts.index', 'uses' => 'PostsController@index']);
    Route::get('posts/create', ['as' => 'posts.create', 'uses' => 'PostsController@create']);
    Route::post('posts', ['as' => 'posts.store', 'uses' => 'PostsController@store']);
    Route::get('posts/{id}', ['as' => 'posts.show', 'uses' => 'PostsController@show']);
    Route::get('posts/{id}/edit', ['as' => 'posts.edit', 'uses' => 'PostsController@edit']);
    Route::patch('posts/{id}', ['as' => 'posts.update', 'uses' => 'PostsController@update']);
    Route::delete('posts/{id}', ['as' => 'posts.destroy', 'uses' => 'PostsController@destroy']);
    Route::post('posts/{id}/comment', ['as' => 'posts.comment', function ($id) {
        return 'posts.comment: ' . $id;
    }]);
    Route::get('hot', ['as' => 'posts.hot', 'uses' => 'PostsController@hot']);
    Route::get('random', ['as' => 'posts.random', 'uses' => 'PostsController@random']);
});
Beispiel #26
0
<?php

Route::resource('permissions', 'PermissionsController', ['only' => ['store', 'index', 'update', 'destroy', 'show']]);
Route::resource('roles', 'RolesController', ['only' => ['store', 'index', 'update', 'destroy', 'show']]);
Route::group(['prefix' => 'roles/{roles}/permissions', 'namespace' => 'Roles', 'as' => str_replace('/', '.', config('guardian.api.url')) . '.roles.permissions.'], function () {
    Route::patch('add/{permissions}', ['as' => 'add', 'uses' => 'PermissionsController@add']);
    Route::patch('remove/{permissions}', ['as' => 'remove', 'uses' => 'PermissionsController@remove']);
});
Route::group(['prefix' => 'roles/{roles}/users', 'namespace' => 'Roles', 'as' => str_replace('/', '.', config('guardian.api.url')) . '.roles.users.'], function () {
    Route::patch('add/{users}', ['as' => 'add', 'uses' => 'UsersController@add']);
    Route::patch('remove/{users}', ['as' => 'remove', 'uses' => 'UsersController@remove']);
});
Beispiel #27
0
Route::get('dashboard/profil', 'UsersController@show');
Route::get('dashboard/news', 'AdminController@news');
/* Registrasi */
Route::get('registrants/xlsx', 'RegistrantsController@exportToExcel');
Route::get('registrants/show/{registrants}', 'RegistrantsController@show');
Route::get('pendaftaran', 'RegistrantsController@create');
Route::resource('registrants', 'RegistrantsController');
Route::get('kelulusan', 'RegistrantsController@kelulusan');
Route::post('kelulusan', 'RegistrantsController@cekKelulusan');
/* Articles */
Route::get('articles/user/{users}', 'ArticlesController@user');
Route::get('articles/create', 'ArticlesController@create');
Route::get('articles/{slug}', 'ArticlesController@show');
Route::resource('articles', 'ArticlesController');
/* News */
Route::resource('news', 'NewsController');
/* Message */
Route::get('messages/show', 'MessagesController@show');
Route::get('messages/compose', 'MessagesController@create');
Route::patch('messages/compose', 'MessagesController@send');
Route::resource('messages', 'MessagesController');
/* Images */
Route::resource('images', 'ImagesController');
/* Sliders */
Route::resource('sliders', 'SlidersController');
/* Tags */
Route::get('tags/{tags}', 'TagsController@show');
/* Users*/
Route::resource('users', 'UsersController');
/* Auth */
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);
Beispiel #28
0
Route::controller('admin/users', 'UsersController');
/**
*
*/
Route::post('admin/task/create_task', 'TaskController@createTask');
/**
*Recruiting
 *
 *
*/
Route::get('admin/complete_task', 'TaskController@completeTask');
Route::get('admin/all_surveys', 'SurveyController@index');
Route::get('admin/survey/show/{id}', 'SurveyController@show');
Route::get('admin/survey/resend/{id}', 'SurveyController@resend');
Route::get('admin/complete_survey_request/{id}', 'SurveyController@complete_survey_request');
Route::patch('admin/recruiting', 'RecruitsController@update');
Route::post('admin/create_note', 'RecruitsController@create_recruit_note');
Route::post('admin/reassign_lead', 'RecruitsController@assign_lead');
Route::get('admin/recruiting/dashboard', 'RecruitsController@dashboard');
Route::get('admin/recruiting/all_recruits', 'RecruitsController@index');
Route::get('admin/recruiting/create_recruit', 'RecruitsController@create');
Route::post('admin/recruiting/add_recruit', 'RecruitsController@store');
Route::get('admin/recruiting/import', 'RecruitsController@upload');
Route::get('admin/task/add_to_outlook', 'TaskController@addTaskToOutlook');
Route::post('admin/recruiting/update_profile_img', 'RecruitsController@edit_img');
Route::controller('test', 'TestController');
Route::controller('admin/agents', 'AgentsController');
Route::controller('admin/admin_ajax', 'AdminAjaxController');
Route::controller('admin/mibor_sync', 'MiborSyncController');
Route::controller('aws', 'AwsController');
Route::get('admin/recruiting/{id}', ['as' => 'show_recruit', 'uses' => 'RecruitsController@show']);
Beispiel #29
0
Route::get('/barcoderequesttablelogmodule', 'barcoderequesttableController@logmodule');
Route::get('/carelabelrequesttable', 'carelabelrequesttableController@index');
Route::get('/carelabelrequesttable/edit/{id}', 'carelabelrequesttableController@edit');
Route::get('/carelabelrequesttablep/edit/{id}', 'carelabelrequesttableController@editp');
Route::post('/carelabelrequesttable-error/{id}', 'carelabelrequesttableController@error');
Route::patch('/carelabelrequesttable/{id}', 'carelabelrequesttableController@update');
Route::patch('/carelabelrequesttablep/{id}', 'carelabelrequesttableController@updatep');
Route::get('/carelabelrequesttablelog', 'carelabelrequesttableController@log');
Route::get('/carelabelrequesttablelogmodule', 'carelabelrequesttableController@logmodule');
Route::get('/secondqrequesttable', 'secondqulityrequestController@index');
Route::get('/secondqrequesttable/edit/{id}', 'secondqulityrequestController@edit');
Route::get('/secondqrequesttablep/edit/{id}', 'secondqulityrequestController@editp');
Route::post('/secondqrequesttable-error/{id}', 'secondqulityrequestController@error');
Route::post('/secondqrequesttable-confirm/{id}', 'secondqulityrequestController@confirm');
Route::patch('/secondqrequesttable/{id}', 'secondqulityrequestController@update');
Route::patch('/secondqrequesttablep/{id}', 'secondqulityrequestController@updatep');
Route::get('/secondqrequesttablelog', 'secondqulityrequestController@log');
Route::get('/secondqrequesttablelogmodule', 'secondqulityrequestController@logmodule');
Route::get('/secondqrequestupdate', 'secondqulityrequestController@secondqrequestupdate');
Route::get('/secondqrequestupdatenav', 'secondqulityrequestController@secondqrequestupdatenav');
// BarcodeStock
Route::get('/barcodestock', 'BarcodeStockController@index');
Route::get('/barcodestockcreatenew', 'BarcodeStockController@createnew');
Route::get('/barcodestockcreatefrommodule', 'BarcodeStockController@createfrommodule');
Route::get('/barcodestockcreateundo', 'BarcodeStockController@createundo');
Route::post('/barcodestockstorenew', 'BarcodeStockController@storenew');
Route::post('/barcodestockstorefrommodule', 'BarcodeStockController@storefrommodule');
Route::post('/barcodestockstoreundo', 'BarcodeStockController@storeundo');
// CarelabelStock
Route::get('/carelabelstock', 'CarelabelStockController@index');
Route::get('/carelabelstockcreatenew', 'CarelabelStockController@createnew');
Beispiel #30
0
<?php

/*
 * Spec Admin Routes
 */
Route::group(['prefix' => 'spec', 'namespace' => 'Spec', 'as' => 'spec.'], function () {
    //spec
    Route::get('/', ['uses' => 'SpecController@index', 'as' => 'home']);
    Route::get('add', ['uses' => 'SpecController@create', 'as' => 'create']);
    Route::post('add', ['uses' => 'SpecController@store', 'as' => 'store']);
    Route::get('{id}/edit', ['uses' => 'SpecController@edit', 'as' => 'edit']);
    Route::patch('{id}', ['uses' => 'SpecController@update', 'as' => 'update']);
    Route::delete('{id}/destroy', ['uses' => 'SpecController@destroy', 'as' => 'destroy']);
    //Categories
    Route::group(['prefix' => 'category', 'as' => 'category.'], function () {
        Route::get('/', ['uses' => 'CategoryController@index', 'as' => 'home']);
        Route::get('add', ['uses' => 'CategoryController@create', 'as' => 'create']);
        Route::post('add', ['uses' => 'CategoryController@store', 'as' => 'store']);
        Route::get('{id}/edit', ['uses' => 'CategoryController@edit', 'as' => 'edit']);
        Route::patch('{id}', ['uses' => 'CategoryController@update', 'as' => 'update']);
        Route::delete('{id}/destroy', ['uses' => 'CategoryController@destroy', 'as' => 'destroy']);
    });
});