Is it possible to add a slug in the user table, if it's possible, then how do?
I try to do it as usual, but it does not work with the table user
class User extends Model{
use \October\Rain\Database\Traits\Sluggable;
protected $slugs = ['slug' => 'name'];
}
I add the slug field in the user table, but it's still null
thank you in advance
It will be little lengthy but No problem We will Solve it :)
user
table and start using it and we are done.UserExtension
in database [ obvious with new plugin ] and add dynamic relation shiponeToOne
to user table to this table and then save all new data to this table using relation.backend forms
to show that field [saving data will work automatically]You will see your shiny new
slug
field which can automatically filled from thename
[ you can change it from preset config ]if you get any problem or doubts please comment.