Laravel 10 full course for beginner - accessor mutator

preview_player
Показать описание
Laravel Form Explaination
This Laravel tutorial teaches you the fundamentals of Laravel 10

🌟 Premium Laravel Course 🌟
New and Updated In Depth Laravel 10 course

Learn the basics of Laravel 10 in this full course for beginners.
Laravel is an MVC-based free and open-source web php framework created by Taylor Otwell.

Social Media:-

Discord server

🔥 DIGITAL OCEAN HOSTING Affiliate

🌟 Gadgets I use 🌟

🌟 Support Me ( I am a full-time YouTube) 🌟

🌟 FOLLOW ME 🌟
Subscribe for New Releases!

(ask me questions!)

--- QUESTIONS? ---

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Thanks for all your support
Рекомендации по теме
Комментарии
Автор

Pls continue the tutorial to building project .. thanks so much

anselmdike
Автор

When trying the mutator (protected function password from 4:27, i.e
protected function password(): Attribute
{
return Attribute::make(
set: fn ($value) => bcrypt($value)
);
}
it doesn't work. But when I used instead:
public function setPasswordAttribute($value)
{
$this->attributes['password'] = bcrypt($value);
}
it worked fine. Please, check on this and if you have time, please explain why the protected password function (mutator) did not work and why instead the public function setPasswordAttribute worked

thierryyolepiot
Автор

Good day, im using the latest version of laravel, and it seems to be encrypted once you use sa user class. theres this array included
protected $casts = [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];

im just new to laravel development. and your tutorial helped me a lot, thank you so much

justinemanalo
Автор

my password auto encrypted when I comment this function " protected function password (): Attribute" from the User.php file. but only first two methods raw SQL work when I used this method then password is not encrypted automatically.

gsm-jwqf