Test-Laravel-Migrations
Test-Laravel-Migrations copied to clipboard
try Migration Test
Good job. However, in task 5, your solution for updating the user table is not correct because you're checking if the users table does not exist, in this case, even if the column does not exist, it will not be added to the table. The solution is to check whether the column exists using Schema::hasColumn('table', 'column').