2018-10-04 19:10:43 +02:00
|
|
|
<?php
|
|
|
|
/*
|
2018-10-19 05:45:55 +02:00
|
|
|
* Authentication Routes Laravel Defaults... replaces //Auth::routes();
|
|
|
|
*/
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2018-10-15 07:00:48 +02:00
|
|
|
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
|
|
|
|
Route::post('login', 'Auth\LoginController@login');
|
|
|
|
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2018-10-19 05:45:55 +02:00
|
|
|
/*
|
|
|
|
* Signup Routes
|
|
|
|
*/
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2019-04-03 04:34:28 +02:00
|
|
|
Route::redirect('/', '/login', 301);
|
|
|
|
Route::get('signup', 'AccountController@index')->name('signup');
|
|
|
|
Route::post('signup', 'AccountController@store')->name('signup.submit');
|
2019-04-04 00:40:56 +02:00
|
|
|
|
2018-10-19 05:45:55 +02:00
|
|
|
/*
|
|
|
|
* Password Reset Routes...
|
|
|
|
*/
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2018-10-15 07:00:48 +02:00
|
|
|
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
|
|
|
|
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
|
|
|
|
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
|
|
|
|
Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2018-10-15 07:00:48 +02:00
|
|
|
/*
|
2018-10-19 05:45:55 +02:00
|
|
|
* Social authentication
|
2018-10-15 07:00:48 +02:00
|
|
|
*/
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2018-10-19 05:45:55 +02:00
|
|
|
Route::get('auth/{provider}', 'Auth\LoginController@redirectToProvider');
|
2019-05-23 00:28:03 +02:00
|
|
|
Route::get('auth/{provider}/create', 'Auth\LoginController@redirectToProviderAndCreate');
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2018-10-15 07:00:48 +02:00
|
|
|
/*
|
2018-10-19 05:45:55 +02:00
|
|
|
* Authenticated User Routes
|
2018-10-15 07:00:48 +02:00
|
|
|
*/
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2019-05-22 05:43:51 +02:00
|
|
|
Route::group(['middleware' => ['auth:user', 'web_db']], function () {
|
2018-10-12 13:29:34 +02:00
|
|
|
|
2018-11-02 11:54:46 +01:00
|
|
|
Route::resource('dashboard', 'DashboardController'); // name = (dashboard. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2018-10-19 05:45:55 +02:00
|
|
|
Route::get('logout', 'Auth\LoginController@logout')->name('user.logout');
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::resource('invoices', 'InvoiceController'); // name = (invoices. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-13 11:42:03 +01:00
|
|
|
Route::post('invoices/bulk', 'InvoiceController@bulk')->name('invoices.bulk');
|
2019-02-04 13:06:19 +01:00
|
|
|
|
|
|
|
Route::resource('quotes', 'QuoteController'); // name = (quotes. index / create / show / update / destroy / edit
|
|
|
|
|
|
|
|
Route::post('quotes/bulk', 'QuoteController@bulk')->name('quotes.bulk');
|
|
|
|
|
|
|
|
Route::resource('recurring_invoices', 'RecurringInvoiceController'); // name = (recurring_invoices. index / create / show / update / destroy / edit
|
|
|
|
|
|
|
|
Route::post('recurring_invoices/bulk', 'RecurringInvoiceController@bulk')->name('recurring_invoices.bulk');
|
|
|
|
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::resource('clients', 'ClientController'); // name = (clients. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-13 11:42:03 +01:00
|
|
|
Route::post('clients/bulk', 'ClientController@bulk')->name('clients.bulk');
|
2019-02-04 13:06:19 +01:00
|
|
|
|
|
|
|
Route::resource('client_statement', 'ClientStatementController@statement'); // name = (client_statement. index / create / show / update / destroy / edit
|
2019-06-12 01:15:17 +02:00
|
|
|
/*
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::resource('tasks', 'TaskController'); // name = (tasks. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-13 11:42:03 +01:00
|
|
|
Route::post('tasks/bulk', 'TaskController@bulk')->name('tasks.bulk');
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::resource('payments', 'PaymentController'); // name = (payments. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-13 11:42:03 +01:00
|
|
|
Route::post('payments/bulk', 'PaymentController@bulk')->name('payments.bulk');
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::resource('credits', 'CreditController'); // name = (credits. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-13 11:42:03 +01:00
|
|
|
Route::post('credits/bulk', 'CreditController@bulk')->name('credits.bulk');
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::resource('expenses', 'ExpenseController'); // name = (expenses. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-13 11:42:03 +01:00
|
|
|
Route::post('expenses/bulk', 'ExpenseController@bulk')->name('expenses.bulk');
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::resource('user', 'UserProfileController'); // name = (clients. index / create / show / update / destroy / edit
|
2019-02-04 13:06:19 +01:00
|
|
|
|
2019-01-07 12:30:28 +01:00
|
|
|
Route::get('settings', 'SettingsController@index')->name('user.settings');
|
2019-06-12 01:15:17 +02:00
|
|
|
*/
|
2018-10-29 04:16:17 +01:00
|
|
|
|
2018-10-19 05:45:55 +02:00
|
|
|
});
|
2018-10-21 00:26:21 +02:00
|
|
|
|
2018-10-19 05:45:55 +02:00
|
|
|
/*
|
|
|
|
* Inbound routes requiring DB Lookup
|
|
|
|
*/
|
2019-05-22 05:43:51 +02:00
|
|
|
Route::group(['middleware' => ['url_db']], function () {
|
2018-10-15 07:00:48 +02:00
|
|
|
|
2018-10-24 12:24:09 +02:00
|
|
|
Route::get('/user/confirm/{confirmation_code}', 'UserController@confirm');
|
|
|
|
|
|
|
|
});
|
2018-10-29 04:16:17 +01:00
|
|
|
|
2018-10-21 00:26:21 +02:00
|
|
|
|
|
|
|
|
2018-11-10 14:24:36 +01:00
|
|
|
/*
|
|
|
|
* Injects users translation strings in json format for frontend consumption.
|
|
|
|
*/
|
|
|
|
Route::get('js/lang.js', 'TranslationController@index')->name('assets.lang');
|
|
|
|
|
|
|
|
|
2018-10-29 04:16:17 +01:00
|
|
|
|
|
|
|
/* Dev Playground
|
|
|
|
Route::get('/mailable', function () {
|
|
|
|
$user = App\Models\User::find(1);
|
|
|
|
|
|
|
|
return new App\Mail\VerifyUser($user);
|
|
|
|
});
|
|
|
|
|
|
|
|
*/
|