mirror of
https://github.com/10h30/Test-Laravel-Migrations.git
synced 2026-07-17 22:03:14 +09:00
Task 4 - Parent child delete
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class ProductFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'category_id' => 1,
|
||||
'name' => $this->faker->text(20),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user