Commit 7c74a81c authored by Le Dinh Trung's avatar Le Dinh Trung

adding routes

parent 961ddb96
......@@ -16,7 +16,8 @@ public function up()
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->string('phone');
$table->string('email')->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
......
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\UserController;
/*
|--------------------------------------------------------------------------
......@@ -16,3 +17,11 @@
Route::get('/', function () {
return view('welcome');
});
Route::get('/register', function () {
return view('register');
});
Route::post('/register', [UserController::class, 'register']);
Route::post('/login', [UserController::class, 'login']);
Route::get('/login', function () {
return view('login');
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment