Нет описания

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. Route::get('/', function () {
  13. return view('welcome');
  14. });
  15. Route::resource('course', 'CourseController')->except([
  16. 'create', 'edit'
  17. ]);
  18. Route::resource('professor', 'ProfessorController')->except([
  19. 'create', 'edit'
  20. ]);
  21. Route::resource('section', 'SectionController')->only([
  22. 'store', 'update', 'destroy'
  23. ]);
  24. // Auth::routes();
  25. Route::get('/dashboard', 'DashboardController@index')->name('dashboard');
  26. Route::get('/dashboard/schedule/{semester}', 'DashboardController@schedule')->name('schedule');
  27. Route::get('/dashboard/export/{semester}', 'DashboardController@export')->name('export');
  28. Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
  29. Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
  30. Route::get('/logout', 'Auth\LoginController@logout')->name('logout');