Valor do Faker de Laravel ou nulo

'parent_id' => $faker->boolean ? Page::all()->random()->id : null,
Lokesh003