Browse Source

setup seeder.

Taylor Otwell 11 years ago
parent
commit
6c40ce69fb
4 changed files with 18 additions and 0 deletions
  1. 1 0
      app/config/app.php
  2. 15 0
      app/database/seeds/DatabaseSeeder.php
  3. 1 0
      app/start/global.php
  4. 1 0
      composer.json

+ 1 - 0
app/config/app.php

@@ -167,6 +167,7 @@ return array(
 		'Response'        => 'Illuminate\Support\Facades\Response',
 		'Route'           => 'Illuminate\Support\Facades\Route',
 		'Schema'          => 'Illuminate\Support\Facades\Schema',
+		'Seeder'          => 'Illuminate\Database\Seeder',
 		'Session'         => 'Illuminate\Support\Facades\Session',
 		'URL'             => 'Illuminate\Support\Facades\URL',
 		'Validator'       => 'Illuminate\Support\Facades\Validator',

+ 15 - 0
app/database/seeds/DatabaseSeeder.php

@@ -0,0 +1,15 @@
+<?php
+
+class DatabaseSeeder extends Seeder {
+
+	/**
+	 * Run the database seeds.
+	 *
+	 * @return void
+	 */
+	public function run()
+	{
+		// $this->call('UserTableSeeder');
+	}
+
+}

+ 1 - 0
app/start/global.php

@@ -15,6 +15,7 @@ ClassLoader::addDirectories(array(
 
 	app_path().'/controllers',
 	app_path().'/models',
+	app_path().'/database/seeds',
 
 ));
 

+ 1 - 0
composer.json

@@ -8,6 +8,7 @@
 			"app/controllers",
 			"app/models",
 			"app/database/migrations",
+			"app/database/seeds",
 			"app/tests/TestCase.php"
 		]
 	},