You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The argument to the foreign key can be a string or array which is referenced internally as $columns. Is this the name of the column on the table with the foreign key, or the name of the key on the relational table?
I am trying to understand how to add foreign key constraints in the schema builder. Having spent some time reading over https://github.com/laravel/framework/blob/master/src/Illuminate/Database/Schema/Blueprint.php and https://github.com/laravel/framework/blob/master/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php, I am afraid I still can't understand how to add foreign keys.
The argument to the foreign key can be a string or array which is referenced internally as
$columns
. Is this the name of the column on the table with the foreign key, or the name of the key on the relational table?Many thanks!
The text was updated successfully, but these errors were encountered: