• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Seeder Error [SOLVED]

#1
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.