lorlandi Posted November 5, 2020 Report Share Posted November 5, 2020 Hi, I am trying to create a new database to later create a new module. Reading the documentation I must use "php artisan module: make-migration create_sample_table ModuleName" but when executing this instruction I get "In DatabaseServiceProvider.php line 88: Class 'Faker \ Factory' not found" This appears on to create a module or to create a database. Can hel me about this please. Many Thanks Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 6, 2020 Administrators Report Share Posted November 6, 2020 Eek, did not realize that it needs Faker. That's kinda ugly. Try a `composer require fzaninotto/faker` that should fix it, but I'll have to distribute it, I guess, or maybe update the docs. It's a big dependency... on second thought, I'll update the docs to require it. Quote Link to comment Share on other sites More sharing options...
lorlandi Posted November 6, 2020 Author Report Share Posted November 6, 2020 Ok many Thanks. Regards Quote Link to comment Share on other sites More sharing options...
lorlandi Posted November 6, 2020 Author Report Share Posted November 6, 2020 Have an issue. Any way i'll wait the docs update. Thanks error.zip Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 6, 2020 Administrators Report Share Posted November 6, 2020 The docs update will just be the command I put above, did you try that? Quote Link to comment Share on other sites More sharing options...
lorlandi Posted November 11, 2020 Author Report Share Posted November 11, 2020 Hi nabeel, yes i did but still have this issue. Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 4096 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129 Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.[transpol@host public_html]$ Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 11, 2020 Administrators Report Share Posted November 11, 2020 Your host needs to increase the memory limit for the command line Quote Link to comment Share on other sites More sharing options...
lorlandi Posted November 11, 2020 Author Report Share Posted November 11, 2020 (edited) Yes I did, I followed the recommendation and put it at -1 or what do you recommend? I have VMSHost Edited November 11, 2020 by lorlandi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.