web.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13. Route::get('/', function () {
  14. return redirect()->route('admin.login');
  15. });
  16. Route::group(['prefix' => 'admin'], function () {
  17. Route::get('/', 'AdminAuth\LoginController@showLoginForm')->name('admin.login');
  18. Route::post('/login', 'AdminAuth\LoginController@login')->name('admin.login.request');
  19. // Route::get('/register', 'AdminAuth\RegisterController@showRegistrationForm')->name('admin.register');
  20. // Route::post('/register', 'AdminAuth\RegisterController@register');
  21. // Route::post('/password/email', 'AdminAuth\ForgotPasswordController@sendResetLinkEmail')->name('admin.password.request');
  22. // Route::post('/password/reset', 'AdminAuth\ResetPasswordController@reset')->name('admin.password.email');
  23. // Route::get('/password/reset', 'AdminAuth\ForgotPasswordController@showLinkRequestForm')->name('admin.password.reset');
  24. // Route::get('/password/reset/{token}', 'AdminAuth\ResetPasswordController@showResetForm');
  25. });
  26. Route::get('/clear-cache', function() {
  27. $exitCode = Artisan::call('config:clear');
  28. $exitCode = Artisan::call('cache:clear');
  29. $exitCode = Artisan::call('config:cache');
  30. $exitCode = Artisan::call('view:clear');
  31. return 'DONE Sir';
  32. });