feat: register & login

This commit is contained in:
2025-09-01 20:21:00 +03:30
parent ed377842c9
commit 4c4c3c5f7b
3 changed files with 103 additions and 67 deletions
+13
View File
@@ -9,6 +9,19 @@
use App\Http\Controllers\BreathingTemplate;
use App\Http\Controllers\MoodController;
use App\Http\Controllers\WorryController;
use Illuminate\Support\Facades\Hash;
Route::get('/test-hash', function() {
$plain = 'amnk1380';
$hash = Hash::make($plain);
return [
'plain' => $plain,
'hash' => $hash,
'check' => Hash::check($plain, $hash), // should be true
];
});
Route::get('package-names/{name}/products', [ProductController::class, 'index']);
Route::prefix('auth')->controller(UserController::class)->group(function () {