Support the ongoing development of Laravel.io →

fabricelepro

Joined 7 Oct 2016

Statistics

Threads 0
Replies 2
Solutions 0
Articles 0

fabricelepro has not posted any threads yet

replied 8 years ago

How to automaticaly create a slug when saving a user?

class User extends Model { public function setNameAttribute($value){ $this->attributes['n...

0 Likes
replied 8 years ago

How to automaticaly create a slug when saving a user?

hi, the best way to do that is to use Mutator

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.