for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class LeagueTableSeeder extends Seeder {
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
public function run() {
$league = [
'id' => 1,
'name' => 'NSFWshow Summer Movie Draft 2013',
'description' => 'It\'s back, bitches!',
'url' => 'http://draft.nsfwshow.com/',
'mode' => 'bid',
'money' => 100,
'units' => '₪',
'extra_weeks' => 4,
'start_date' => '2013-04-19',
'end_date' => '2013-09-20',
'private' => false,
'featured' => true,
];
League::create($league);
}
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.