console.php 0000664 00000001051 15123337100 0006711 0 ustar 00 <?php
use Illuminate\Foundation\Inspiring;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');
api.php 0000664 00000001020 15123337100 0006014 0 ustar 00 <?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| 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::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:api');
web.php 0000644 00000005037 15123337100 0006032 0 ustar 00 <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Auth::routes();
Route::group(['prefix' => 'qxcms/laravel/filemanager', 'middleware' => ['auth.client']], function () {
\UniSharp\LaravelFilemanager\Lfm::routes();
});
Route::group(['namespace'=>'Website'], function() {
Route::get('/', array('uses' => 'PostController@index', 'as' => 'index'));
Route::get('/{slug}', array('uses' => 'PostController@pages', 'as' => 'website/pages'));
Route::get('datatable', ['uses'=>'WebsiteController@datatable']);
Route::post('datatable/getjobs', ['as'=>'datatable.getjobs','uses'=>'WebsiteController@getJobs']);
});
// contact us form
Route::get('contact-us', array('uses' => 'Website\ContactController@create', 'as' => 'contact'));
Route::post('emails\contact', array('uses' => 'Website\ContactController@store', 'as' => 'contact_store'));
// apply now form (apply quick in myra)
Route::get('apply-now', array('uses' => 'Website\ApplyNowController@create', 'as' => 'applynow'));
Route::post('emails\apply-now', array('uses' => 'Website\ApplyNowController@store', 'as' => 'applynow_store'));
// apply now for general application
Route::get('general-application', array('uses' => 'Website\GeneralApplicationController@create', 'as' => 'applygeneral'));
Route::post('emails\general-application', array('uses' => 'Website\GeneralApplicationController@store', 'as' => 'applygeneral_store'));
// manpower-request form
Route::get('manpower-request', array('uses' => 'Website\ManpowerController@create', 'as' => 'manpowerrequest'));
Route::post('emails\manpower-request', array('uses' => 'Website\ManpowerController@store', 'as' => 'manpowerrequest_store'));
$dir_path = \Config::get('view.paths');
$dir = "/website/routes";
if (file_exists($dir_path[0].$dir)) {
$dh = opendir($dir_path[0].$dir);
while (false !== ($filename = readdir($dh))) {
if(!strstr($filename, ".")) {
$ffs = scandir($dir_path[0].$dir.'/'.$filename);
foreach($ffs as $ff)
{
if($ff != '.' && $ff != '..')
{
if(strstr($ff, "routes")) {
require $dir_path[0].$dir.'/'.$filename.'/'.$ff;
}
}
}
}
}
}