for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class LeagueTeamsTableSeeder 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() {
$teams = [
['league_id' => 1, 'name' => 'Brian Brushwood'],
['league_id' => 1, 'name' => 'Justin Robert Young'],
['league_id' => 1, 'name' => 'Tom Merritt'],
['league_id' => 1, 'name' => 'C. Robert Cargill'],
['league_id' => 1, 'name' => 'Scott Johnson'],
['league_id' => 1, 'name' => 'Sarah Lane'],
];
foreach ($teams as $team) {
LeagueTeam::create($team);
}
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.