本文整理汇总了PHP中Queue::marshal方法的典型用法代码示例。如果您正苦于以下问题:PHP Queue::marshal方法的具体用法?PHP Queue::marshal怎么用?PHP Queue::marshal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Queue
的用法示例。
在下文中一共展示了Queue::marshal方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
|
| 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.
|
*/
Queue::getIron()->ssl_verifypeer = false;
Route::get('home', function () {
return view('welcome');
});
Route::get('', function () {
return view('welcome');
});
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);
Route::post('queue/receive', function () {
return Queue::marshal();
});
Route::get('empresa', 'EmpresaController@indexempresa');
Route::get('cuenta', 'EmpresaController@cuentaempresa');
Route::get('proyectos', 'EmpresaController@proyectosempresa');
Route::post('proyectos/create', 'EmpresaController@createproyecto');
Route::get('contacto', 'EmpresaController@contactoempresa');
Route::get('personal', 'EmpresaController@personalempresa');
Route::post('updatedatos', 'EmpresaController@updatedatos');
Route::get('getpersonal', 'EmpresaController@getpersonalempresa');
Route::get('insertpersonal', 'EmpresaController@insertpersonalempresa');
Route::get('deletepersonal', 'EmpresaController@deletepersonalempresa');
Route::get('updatepersonal', 'EmpresaController@updatepersonalempresa');
Route::post('sendtests', 'EmpresaController@sendtests');
Route::get('/admin/variables', 'AdminController@getvariablespage');
Route::get('/admin/pruebas', 'AdminController@getpruebaspage');
示例2: function
Route::get('logout', ['as' => 'front.logout', 'uses' => 'SiteController@getLogout']);
Route::get('api/country', 'SiteController@getCountryList');
Route::get('api/city', 'SiteController@getCityList');
Route::get('api/job-listing/{id}/{type}', ['as' => 'job.frame', 'uses' => 'SiteController@getJobListingFrame']);
Route::post('login', ['as' => 'front.postLogin', 'uses' => 'SiteController@postLogin']);
Route::get('free-resources', function () {
return view('front.resources');
});
Route::get('gen', 'SiteController@getPublicKey');
Route::post('handshake', 'SiteController@getHandshakeKey');
Route::get('resume-search', ['as' => 'resume.search', 'uses' => 'SiteController@getResumeSearch']);
Route::get('contractor/{id}/{slug}', ['as' => 'contractor.profile', 'uses' => 'ContractorController@getPublicProfilePage']);
Route::get('company/{id}/{slug}', ['as' => 'company.profile', 'uses' => 'CompanyController@getPublicProfilePage']);
Route::get('agency/{id}/{slug}', ['as' => 'agency.profile', 'uses' => 'AgencyController@getPublicProfilePage']);
Route::get('job/{id}/{slug}', ['as' => 'job.public', 'uses' => 'JobController@getPublicJobPage']);
Route::get('job-search', ['as' => 'job.search', 'uses' => 'SiteController@jobSearch']);
Route::post('forgot-password', ['as' => 'password.forgot', 'uses' => 'SiteController@forgotPassword']);
Route::get('reset-password', ['as' => 'password.reset', 'uses' => 'SiteController@getResetPassword']);
Route::post('reset-password', ['as' => 'password.postReset', 'uses' => 'SiteController@postResetPassword']);
Route::post('contact-message', ['as' => 'contact', 'uses' => 'SiteController@postMessage']);
Route::controller('newsletter', 'NewsLetterController', ['getUnsubscribe' => 'newsletter.unsubscribe', 'getNewsLetter' => 'admin.newsletter']);
Route::controller('api/payment', 'PaymentController', []);
Route::controller('admin', 'AdminController', ['getIndex' => 'admin.index', 'getLogin' => 'admin.login', 'getLogout' => 'admin.logout', 'getCms' => 'admin.cms', 'getAccount' => 'admin.account', 'postAccount' => 'admin.postAccount', 'getJob' => 'admin.job.index', 'getJobIndustry' => 'admin.job.industry', 'getContractor' => 'admin.contractor', 'getAgency' => 'admin.agency', 'getCompany' => 'admin.company', 'getCompanyList' => 'admin.company.list', 'postCompanyBan' => 'admin.company.ban', 'getContractorList' => 'admin.contractor.list', 'postContractorBan' => 'admin.contractor.ban', 'getAgencyList' => 'admin.agency.list', 'postAgencyBan' => 'admin.agency.ban', 'getJobList' => 'admin.job.list', 'postJobRemove' => 'admin.job.remove']);
Route::controller('company', 'CompanyController', ['getRegister' => 'company.register', 'postRegister' => 'company.postRegister', 'getIndex' => 'company.index', 'getPostJob' => 'company.job.post', 'getEditJob' => 'company.job.edit', 'getJobApplication' => 'company.job.application', 'getJobDetails' => 'company.job.detail', 'getAccount' => 'company.account', 'getNotif' => 'company.allNotif']);
Route::controller('agency', 'AgencyController', ['getRegister' => 'agency.register', 'postRegister' => 'agency.postRegister', 'getIndex' => 'agency.index', 'getAccount' => 'agency.account', 'getJobAdd' => 'agency.job.add', 'getJobApplication' => 'agency.job.application', 'getJobEdit' => 'agency.job.edit', 'getJobList' => 'agency.job.list', 'getJobDetails' => 'agency.job.detail', 'getCompanyList' => 'agency.company.list', 'getNotif' => 'agency.allNotif']);
Route::controller('contractor', 'ContractorController', ['getRegister' => 'contractor.register', 'postRegister' => 'contractor.postRegister', 'getIndex' => 'contractor.index', 'getAccount' => 'contractor.account', 'getCreateJobAlert' => 'contractor.jobAlert.create', 'getAddTimesheet' => 'contractor.job.timesheet', 'getAddExpense' => 'contractor.job.expense', 'getNotif' => 'contractor.allNotif']);
Route::controller('job', 'JobController', ['getIndustryList' => 'admin.job.industry.list', 'getEditIndustry' => 'admin.job.industry.edit', 'postAddIndustry' => 'admin.job.industry.postAdd', 'postEditIndustry' => 'admin.job.industry.postEdit', 'postRemoveIndustry' => 'admin.job.industry.remove', 'postRemoveTimesheet' => 'contractor.job.timesheet.remove', 'postRemoveExpense' => 'contractor.job.expense.remove']);
//Route::get('test-mail', 'SiteController@testSendEmail');
Route::post('mail/receive', function () {
return \Queue::marshal();
});