:::

1. /routes/web.php

<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
 */
Route::pattern('exam', '[0-9]+');
Route::pattern('topic', '[0-9]+');
Route::pattern('test', '[0-9]+');

Route::get('/', 'ExamController@index')->name('index');

Auth::routes();

Route::get('/home', 'ExamController@index')->name('home');

Route::resource('exam', 'ExamController');
// Route::get('/exam', 'ExamController@index')->name('exam.index');
// Route::get('/exam/{exam}', 'ExamController@show')->name('exam.show');
// Route::get('/exam/create', 'ExamController@create')->name('exam.create');
// Route::post('/exam', 'ExamController@store')->name('exam.store');
// Route::get('/exam/{exam}/edit', 'ExamController@edit')->name('exam.edit');
// Route::patch('/exam/{exam}', 'ExamController@update')->name('exam.update');
// Route::delete('/exam/{exam}', 'ExamController@destroy')->name('exam.destroy');

Route::resource('topic', 'TopicController');
// Route::post('/topic', 'TopicController@store')->name('topic.store');
// Route::get('/topic/{topic}/edit', 'TopicController@edit')->name('topic.edit');
// Route::patch('/topic/{topic}', 'TopicController@update')->name('topic.update');
// Route::delete('/topic/{topic}', 'TopicController@destroy')->name('topic.destroy');

Route::resource('test', 'TestController');
// Route::post('/test', 'TestController@store')->name('test.store');
// Route::get('/test/{test}', 'TestController@show')->name('test.show');

// 處理表單,導向至 NTPC OpenID 登入
Route::post('auth/login/openid', 'OpenIDController@ntpcopenid')->name('ntpcopenid');

// OpenID 導回
Route::get('auth/login/openid', 'OpenIDController@get_ntpcopenid')->name('get_ntpcopenid');

 


:::

書籍目錄

展開 | 闔起

快速登入


https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1299%26tbsn%3D41

計數器

今天: 7746774677467746
昨天: 2489248924892489
總計: 8029728802972880297288029728802972880297288029728