Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function run() |
||
15 | { |
||
16 | Model::unguard(); |
||
17 | $output = $this->command->getOutput(); |
||
18 | $output->title('Starting Database Seed'); |
||
19 | |||
20 | //---------------- Create user database ------------- |
||
21 | Schema::create('users', function(Blueprint $table) { |
||
22 | $table->increments('id'); |
||
23 | $table->string('name'); |
||
24 | $table->string('email')->unique(); |
||
25 | $table->string('password'); |
||
26 | $table->rememberToken(); |
||
27 | $table->timestamps(); |
||
28 | }); |
||
29 | |||
30 | //---------------- Populate users ------------- |
||
31 | $users = factory(Humweb\Sociable\Tests\Stubs\User::class, 3)->create(); |
||
32 | |||
33 | Model::reguard(); |
||
34 | } |
||
35 | |||
37 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.