| 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('welcome'); }); Route::get('dashboard', ['middleware' => 'auth', function () { return view('dashboard'); }]); Route::get('/employees', function () { return view('employees', ['Users' => App\User::with('Messages')->get()]); }); Route::get('/skills', function () { return view('skills', ['Skills' => App\Skill::with('Messages')->get()]); }); Route::get('/recruiters', function () { return view('recruiters', ['Recruiters' => App\Recruiter::with('Messages')->get()]); }); Route::get('/messages', function () { return view('messages', ['Messages' => App\Message::with('Recruiter', 'Employee')->get()]); }); Route::get('messages/{id}', function ($message_id) { return App\Message::find($message_id)->body; }); // Authentication routes... Route::get('auth/login', 'Auth\\AuthController@getLogin'); Route::post('auth/login', 'Auth\\AuthController@postLogin'); Route::get('auth/logout', 'Auth\\AuthController@getLogout'); // Registration routes...