Esempio n. 1
0
    Route::resource('suppliers', 'SuppliersController');
});
Route::resource('profiles', 'ProfilesController');
Route::resource('products', 'ProductsController');
Route::get('list', 'ProductsController@getProductlist');
// Route::resource('users.company', 'UserCompaniesController');
Route::resource('companies', 'CompaniesController');
Route::resource('catalogues', 'CataloguesController');
Route::get('categories/{name}', 'CategoriesController@showByName');
Route::resource('categories', 'CategoriesController');
Route::resource('counties', 'CountiesController');
Route::resource('buying_leads', 'Buying_leadsController');
// Route::resource('todos', 'TodosController');
// id:increments, title:string, description:text, deadline:string, person:string, done:boolean, flag:boolean
Route::get('business', function () {
    var_dump(All::getBusiness());
});
Route::resource('names', 'NamesController');
# Partners Management
Route::group(array('prefix' => 'partners'), function () {
    Route::get('create', array('as' => 'create/partner', 'uses' => 'PartnersController@getCreate'));
    Route::post('create', 'PartnersController@postCreate');
    Route::get('{partnerId}', array('as' => 'partner.show', 'uses' => 'PartnersController@getShow'));
    Route::get('{partnerId}/edit', array('as' => 'update/partner', 'uses' => 'PartnersController@getEdit'));
    Route::post('{partnerId}/edit', 'PartnersController@postEdit');
    Route::get('{partnerId}/delete', array('as' => 'delete/partner', 'uses' => 'PartnersController@getDelete'));
    Route::get('{partnerId}/restore', array('as' => 'restore/partner', 'uses' => 'PartnersController@getRestore'));
});
# Advertisements Management
Route::group(array('prefix' => 'advertisements'), function () {
    Route::get('/', array('as' => 'advertisements', 'uses' => 'AdvertisementsController@getIndex'));