How can i add new colum in existing table as a foreign in laravel 9 – Mysql
I was trying to add a new column as a foriegn key in existing table in laravel 9. But, it continuously giving SQL error. I want to create a simple category_id as a foreign_key in brand table. The below code…