name('login')->uses('Auth\LoginController@showLoginForm'); Route::post('login')->name('login.attempt')->uses('Auth\LoginController@login'); Route::get('logout')->name('logout')->uses('Auth\LoginController@logout'); // Dashboard Route::get('/')->name('dashboard')->uses('DashboardController@index')->middleware('remember', 'auth'); // Accounts Route::get('accounts')->name('accounts')->uses('AccountsController@index')->middleware('remember', 'auth'); Route::get('accounts/create')->name('accounts.create')->uses('AccountsController@create')->middleware('auth'); Route::post('accounts')->name('accounts.store')->uses('AccountsController@store')->middleware('auth'); Route::get('accounts/{account}/edit')->name('accounts.edit')->uses('AccountsController@edit')->middleware('auth'); Route::put('accounts/{account}')->name('accounts.update')->uses('AccountsController@update')->middleware('auth'); Route::delete('accounts/{account}')->name('accounts.destroy')->uses('AccountsController@destroy')->middleware('auth'); Route::put('accounts/{account}/restore')->name('accounts.restore')->uses('AccountsController@restore')->middleware('auth'); // Users Route::get('users')->name('users')->uses('UsersController@index')->middleware('remember', 'auth'); Route::get('users/create')->name('users.create')->uses('UsersController@create')->middleware('auth'); Route::post('users')->name('users.store')->uses('UsersController@store')->middleware('auth'); Route::get('users/{user}/edit')->name('users.edit')->uses('UsersController@edit')->middleware('auth'); Route::put('users/{user}')->name('users.update')->uses('UsersController@update')->middleware('auth'); Route::delete('users/{user}')->name('users.destroy')->uses('UsersController@destroy')->middleware('auth'); Route::put('users/{user}/restore')->name('users.restore')->uses('UsersController@restore')->middleware('auth'); // Organizations Route::get('organizations')->name('organizations')->uses('OrganizationsController@index')->middleware('remember', 'auth'); Route::get('organizations/create')->name('organizations.create')->uses('OrganizationsController@create')->middleware('auth'); Route::post('organizations')->name('organizations.store')->uses('OrganizationsController@store')->middleware('auth'); Route::get('organizations/{organization}/edit')->name('organizations.edit')->uses('OrganizationsController@edit')->middleware('auth'); Route::put('organizations/{organization}')->name('organizations.update')->uses('OrganizationsController@update')->middleware('auth'); Route::delete('organizations/{organization}')->name('organizations.destroy')->uses('OrganizationsController@destroy')->middleware('auth'); Route::put('organizations/{organization}/restore')->name('organizations.restore')->uses('OrganizationsController@restore')->middleware('auth'); // Contacts Route::get('contacts')->name('contacts')->uses('ContactsController@index')->middleware('remember', 'auth'); Route::get('contacts/create')->name('contacts.create')->uses('ContactsController@create')->middleware('auth'); Route::post('contacts')->name('contacts.store')->uses('ContactsController@store')->middleware('auth'); Route::get('contacts/{contact}/edit')->name('contacts.edit')->uses('ContactsController@edit')->middleware('auth'); Route::put('contacts/{contact}')->name('contacts.update')->uses('ContactsController@update')->middleware('auth'); Route::delete('contacts/{contact}')->name('contacts.destroy')->uses('ContactsController@destroy')->middleware('auth'); Route::put('contacts/{contact}/restore')->name('contacts.restore')->uses('ContactsController@restore')->middleware('auth'); // Reports Route::get('reports')->name('reports')->uses('ReportsController@index')->middleware('auth'); // 500 error Route::get('500', function () { echo $fail; });