mercredi 12 juillet 2017

Is it possible to create a foreign key relationship between two tables on String/varchar type columns in Laravel?

I have a Category table which has a id and a slug(varchar type) column.I want to create a Subcategory table which will have a column category_slug(varchar type) that will reference the slug column in the Category table.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uh7MNz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire