We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeders wouldn't work on Unix based systems because of the directory separators. private $rolesFilePath = 'database\seeds\Components\Role\roles.json';
private $rolesFilePath = 'database\seeds\Components\Role\roles.json';
Result:
[ErrorException] file_get_contents(/home/opus/database\seeds\Components\Page\pages.json): failed to open stream: No such file or directory
There are 3 ways to solve this:
DIRECTORY_SEPARATOR
\
/
As for me - the best option is 2nd one.
The text was updated successfully, but these errors were encountered:
[Issue #64]. Fixed file path directory separators in DB Seeders. (#67)
7cd486b
No branches or pull requests
Seeders wouldn't work on Unix based systems because of the directory separators.
private $rolesFilePath = 'database\seeds\Components\Role\roles.json';
Result:
There are 3 ways to solve this:
DIRECTORY_SEPARATOR
instead of\
/
(because as far as I know Windows accept both of the slashes as directory separator and Unix based systems are not).As for me - the best option is 2nd one.
The text was updated successfully, but these errors were encountered: