Full Stack Authentication Angular & Laravel using JWT | Part 4

preview_player
Показать описание
In this video you will learn about the registration process using Angular. You will be to save data in database. I will explain you how to create a service and share data to a component. We will use toaster to show message when data is inserted successfully. If we duplicate the same email. It will show the message on angular application that user is duplicated. Once the form is submitted successfully we can rest our form fields.

Documentation for JWT

Complete Angular Full Stack CRUD Series

Complete Laravel API CRUD

#full_stack #angular #laravel #authentication
Рекомендации по теме
Комментарии
Автор

Hi! Everthing worked perfect in this video!! Could you be my mentor? I insist, seriously How do I enroll in a course with you? I LOVE web development!!!❤

victoria-exito
Автор

If u have CORS error while pushing data to backend, just go to your backend folder and:
1. composer require fruitcake/laravel-cors
2. In Kernel.php in $middleware add and comment out // \App\Http\Middleware\TrustHosts::class,
3. Go to config/cors.php (If there no file with this name use cmd php artisan vendor:publish --tag=”cors”)
4. Set this return statement:

return [

'paths' => ['/*', 'sanctum/csrf-cookie'],

'allowed_methods' => ['*'],

'allowed_origins' => ['*'],

'allowed_origins_patterns' => [],

'allowed_headers' => ['*'],

'exposed_headers' => [],

'max_age' => 0,

'supports_credentials' => false,

];

norbertsandor
welcome to shbcf.ru