Created
January 2, 2016 07:28
-
-
Save trq/b6549c66168718076724 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Routes File | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you will register all of the routes in an application. | |
| It's a breeze. Simply tell Laravel the URIs it should respond to | |
| and give it the controller to call when that URI is requested. | |
| | |
*/ | |
Route::get('/', function () { | |
return view('welcome'); | |
}); | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| This route group applies the "web" middleware group to every route | |
| it contains. The "web" middleware group is defined in your HTTP | |
| kernel and includes session state, CSRF protection, and more. | |
| | |
*/ | |
Route::group(['middleware' => 'web'], function () { | |
Route::auth(); | |
Route::get('/', 'HomeController@index'); | |
Route::get('/tasks', 'TaskController@index'); | |
Route::post('/task', 'TaskController@store'); | |
Route::delete('/task/{task}', 'TaskController@destroy'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment