Welcome Guest, Not a member yet? Register   Sign In
Run seed command in module
#6

One thing that is critical is that you need to have the module path in the Autoload.php file like below
for it to find the seeder in a module.

PHP Code:
public $psr4 = [
    APP_NAMESPACE => APPPATH,
    // InsiteFX Code Modules.
    'InsiteFX\Admin'        => ROOTPATH 'InsiteFX/Admin',          // InsiteFX/Admin Module
    'InsiteFX\Blog'        => ROOTPATH 'InsiteFX/Blog',          // InsiteFX/Blog Module
    // Shield Auth Modules.
    'CodeIgniter\Settings'  => ROOTPATH 'InsiteFX/settings/src',  // Settings Module
    'CodeIgniter\Shield'    => ROOTPATH 'InsiteFX/shield/src',    // Shield Auth Module
]; 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Run seed command in module - by Vespa - 01-05-2025, 07:47 AM
RE: Run seed command in module - by InsiteFX - 01-05-2025, 11:17 PM
RE: Run seed command in module - by Vespa - 01-06-2025, 01:15 AM
RE: Run seed command in module - by InsiteFX - 01-06-2025, 03:24 AM
RE: Run seed command in module - by Vespa - 01-06-2025, 06:22 AM
RE: Run seed command in module - by InsiteFX - 01-06-2025, 10:44 PM
RE: Run seed command in module - by InsiteFX - 01-07-2025, 10:41 PM
RE: Run seed command in module - by InsiteFX - 01-07-2025, 11:49 PM
RE: Run seed command in module - by InsiteFX - 01-08-2025, 11:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB