You can't just let out the incremental ID and make sure your save method, when it's a new entry, generates an ID from your preference?
public $incrementing = false;
on your model indicates the ids are not auto-incrementing.
In fact am looking to generate some random ID like Youtube.. Something like this: ggPo8mbb_dep and not use the simple numeric ID
The problem is I have to rewrite the find method and some other method that give the ID... I wonder if there is a package or if someone already did it ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community