forked from vyuldashev/laravel-openapi
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Corrected SchemaFactoryMakeCommand.php to work with Laravel 11 (#15
) * fix: Corrected SchemaFactoryMakeCommand.php to work with Laravel 11 * fix: Update SchemaFactoryMakeCommand.php to work with Laravel 11 Changed way to get $default and $notNull, to be more widely compatible * fix: Update SchemaFactoryMakeCommand.php to work with Laravel 11 Changed way to get $default and $notNull, to be more widely compatible and tested working * fix: Update SchemaFactoryMakeCommand to improve new code readability Refactored the code to use the schema builder to retrieve the columns of the table and iterate over each column to find the specific one we're interested in. This change ensures compatibility with Laravel 11 and provides a more widely compatible and tested solution.
- Loading branch information
Showing
1 changed file
with
69 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters