public function run() { $this->command->info("Seeding permissions."); $permission_count = Permission::count(); foreach ($this->slugs() as $slug) { Permission::firstOrCreate(['permission_id' => $slug]); } $permission_count = Permission::count() - $permission_count; $this->command->info("Done. Seeded {$permission_count} new permission(s)."); }