PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Edward Paul   PHP Job Board   routes/web.php   Download  
File: routes/web.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Job Board
Manage job postings via Web pages or an API
Author: By
Last change:
Date: 2 years ago
Size: 1,458 bytes
 

Contents

Class file image Download
<?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!
|
*/

Route::get('/', 'FrontendController@index')->name('welcome');


Auth::routes(['verify' => true]);

Route::get('/home', 'HomeController@index')->name('home');
Route::get('/settings', 'HomeController@setting')->name('setting');

Route::get('/job', 'EmployeeController@index')->name('job');
Route::get('/managejob', 'EmployeeController@manageJob')->name('manageJob');
Route::get('/managejob/{job}', 'EmployeeController@manageCandidate')->name('manageCandidate');
Route::post('/sendmessage/{application}', 'EmployeeController@sendMessageToCandidate')->name('sendMessageToCandidate');

Route::post('/job', 'EmployeeController@postJob');

Route::get('/resume', 'FreelanceController@resume')->name('resume');
Route::post('/resume', 'FreelanceController@postResume');
Route::post('/apply/{job}', 'FreelanceController@applyForJob')->name('apply');

Route::post('/settings', 'ProfileController@updateProfile');
Route::post('/settings/password', 'ProfileController@changePassword')->name('change_password');

Route::get('/{job}', 'FrontendController@viewJob')->name('viewJob');