Welcome Guest, Not a member yet? Register   Sign In
Database Seeder Error [SOLVED]
#1

(This post was last modified: 07-10-2020, 05:22 AM by InsiteFX.)

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');
    

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB