Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel faker value or null

'parent_id' => $faker->boolean ? Page::all()->random()->id : null,
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #faker #null
ADD COMMENT
Topic
Name
4+1 =