CodeIgniter Forums

Full Version: Database Seeder Error [SOLVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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');