Fix Event & EventType resource issues and apply formatting
- Fix EventType deletion error handling (constraint violations) - Fix Event update error (package_id column missing) - Fix Event Type dropdown options (JSON display issue) - Fix EventPackagesRelationManager query error - Add missing translations for deletion errors - Apply Pint formatting
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\EventType;
|
||||
use App\Models\Task;
|
||||
use App\Models\TaskCollection;
|
||||
use App\Models\Tenant;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
@@ -21,7 +20,7 @@ class TaskCollectionFactory extends Factory
|
||||
return [
|
||||
'tenant_id' => Tenant::factory(),
|
||||
'event_type_id' => EventType::factory(),
|
||||
'slug' => Str::slug($label . '-' . $this->faker->unique()->numberBetween(1, 9999)),
|
||||
'slug' => Str::slug($label.'-'.$this->faker->unique()->numberBetween(1, 9999)),
|
||||
'name_translations' => [
|
||||
'de' => $label,
|
||||
'en' => $label,
|
||||
|
||||
Reference in New Issue
Block a user