-
on laravel 9 you can use the built in trait
-
however if you want to have more control you also can use the custom trait below
- see
0.Test.php
- see
-
create new trait
app/Traits/hasUuid.php
- see
1.hasUuid.php
- see
-
extend all models
- see
2.Test.php
- see
- https://blog.hagander.net/automatically-dropping-and-creating-constraints-131/
- https://dataedo.com/kb/query/postgresql/list-all-primary-keys-and-their-columns
- https://stackoverflow.com/a/49429112/2068362
- see
3.raw-queries.sql
- see
4.xxxx_xx_xx_0001_uuid.php
- see
5.xxxx_xx_xx_0001_tables.php
rm -f storage/framework/sessions/*