Skip to content

Instantly share code, notes, and snippets.

class MigrateOrdersAndProducts extends Seeder
{
protected $users;
protected $orders;
public function __construct() {
$this->users = [];
$this->orders = [];
}
@justinmccombs
justinmccombs / ExtendedSeeder.php
Created April 24, 2014 15:08
Laravel Import Seeder
class NewTableSeeder extends ImportSeeder
{
public function run()
{
// Set up connections
$this->oldConnection = 'old_mysql';
$this->newConnection = 'new_mysql';
// Set number of records to migrate, useful for limiting
// the number of imported records during development

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post