Fix/fix permissions tables migration - guard_name and name #436
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to improve application configuration, database schema compatibility, and code readability. The key updates include adding a new
.envfile, modifying database connection settings, setting a default string length for database columns, and adjusting schema definitions for better compatibility with MySQL 8.0.Environment Configuration:
.envfile with default application and database configuration values, such asAPP_NAME,DB_CONNECTION, andMAIL_MAILER. This file provides a local environment setup template..env.exampleto align database host and credentials with the new.envfile, replacingDB_HOST=dbwithDB_HOST=127.0.0.1and settingDB_USERNAMEtorootwith an empty password.Database Schema Compatibility:
AppServiceProviderto set a default string length of 191 for database columns, ensuring compatibility with older MySQL versions. [1] [2]nameandguard_namecolumns in thepermissionsandrolestables to 125 characters for compatibility with MySQL 8.0.Code Readability:
create_permission_tables.phpmigrations for improved readability by breaking long lines into multiple lines. [1] [2]