2019-07-16 04:38:11 +02:00
< ? php
2019-08-05 01:31:55 +02:00
Route :: get ( 'client' , 'Auth\ContactLoginController@showLoginForm' ) -> name ( 'client.login' ); //catch all
2019-08-05 00:17:46 +02:00
2019-07-16 04:38:11 +02:00
Route :: get ( 'client/login' , 'Auth\ContactLoginController@showLoginForm' ) -> name ( 'client.login' );
Route :: post ( 'client/login' , 'Auth\ContactLoginController@login' ) -> name ( 'client.login.submit' );
2019-07-17 06:52:54 +02:00
Route :: get ( 'client/password/reset' , 'Auth\ContactForgotPasswordController@showLinkRequestForm' ) -> name ( 'client.password.request' );
Route :: post ( 'client/password/email' , 'Auth\ContactForgotPasswordController@sendResetLinkEmail' ) -> name ( 'client.password.email' );
Route :: get ( 'client/password/reset/{token}' , 'Auth\ContactResetPasswordController@showResetForm' ) -> name ( 'client.password.reset' );
Route :: post ( 'client/password/reset' , 'Auth\ContactResetPasswordController@reset' ) -> name ( 'client.password.update' );
2019-07-17 06:15:25 +02:00
2019-07-16 04:38:11 +02:00
//todo implement domain DB
//Route::group(['middleware' => ['auth:contact', 'domain_db'], 'prefix' => 'client', 'as' => 'client.'], function () {
Route :: group ([ 'middleware' => [ 'auth:contact' ], 'prefix' => 'client' , 'as' => 'client.' ], function () {
Route :: get ( 'dashboard' , 'ClientPortal\DashboardController@index' ) -> name ( 'dashboard' ); // name = (dashboard. index / create / show / update / destroy / edit
2019-07-22 05:54:34 +02:00
Route :: get ( 'invoices' , 'ClientPortal\InvoiceController@index' ) -> name ( 'invoices.index' ); // name = (dashboard. index / create / show / update / destroy / edit
2019-08-02 02:31:48 +02:00
Route :: get ( 'profile/{client_contact}/edit' , 'ClientPortal\ProfileController@edit' ) -> name ( 'profile.edit' );
2019-08-12 14:45:13 +02:00
Route :: put ( 'profile/{client_contact}' , 'ClientPortal\ProfileController@update' ) -> name ( 'profile.update' );
2019-07-16 04:38:11 +02:00
2019-08-07 02:44:38 +02:00
Route :: post ( 'document' , 'ClientPortal\DocumentController@store' ) -> name ( 'document.store' );
2019-08-08 13:07:26 +02:00
Route :: delete ( 'document' , 'ClientPortal\DocumentController@destroy' ) -> name ( 'document.destroy' );
2019-08-07 02:44:38 +02:00
2019-07-16 04:38:11 +02:00
Route :: get ( 'logout' , 'Auth\ContactLoginController@logout' ) -> name ( 'logout' );
2019-07-17 00:59:09 +02:00
});
Route :: fallback ( 'BaseController@notFoundClient' );