public function run() { $notification_types = [["name" => "like"], ["name" => "follow"], ["name" => "comment"], ["name" => "ownership"]]; NotificationType::truncate(); foreach ($notification_types as $notification_type) { NotificationType::create($notification_type); } }