CodeIgniter Forums
Database Seeder Error [SOLVED] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Database Seeder Error [SOLVED] (/showthread.php?tid=76980)



Database Seeder Error [SOLVED] - InsiteFX - 07-09-2020

I' am placing this here because I' am not sure if it is a bug or not.

I have been trying for a day now to Seed Myth/Auth with the boilerplate Seed

php spark boilerplate:install

It does the migrations but it will not seed the tables and I think it has to do with the path

This is the error I' am getting look at the path.

The specified Seeder is not a valid file: C:\xampp\htdocs\admin\app\Database/Seeds/dbConfusedeed.php

This is a Windows 10 Pro x64 The path is mixed with back slashes and forward slashes.

[SOLVED]

There is something wrong with the way that Boilerplate is seeding using php spark boilerplate:install

I ran it from my home controller like below and it seeded the tables.

PHP Code:
    public function index()
    {
        
$seeder Database::seeder();
        
$seeder->call('agungsugiarto\boilerplate\Database\Seeds\BoilerplateSeeder');

        
//return view('welcome_message');