🎉 Hello world
This commit is contained in:
28
routes/web.php
Normal file
28
routes/web.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
Auth::routes();
|
||||
|
||||
Route::group(['middleware' => ['auth']], static function () {
|
||||
Route::get('/home', 'HomeController@index')->name('home');
|
||||
Route::get('/home/add', 'HomeController@add')->name('home.add');
|
||||
Route::post('/home/add', 'HomeController@store')->name('home.store');
|
||||
Route::get('/home/{id}', 'HomeController@show')->name('home.show');
|
||||
Route::post('/ajax/fetch', 'HomeController@fetch')->name('ajax.fetch');
|
||||
});
|
||||
Reference in New Issue
Block a user