Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel polimorfic faker

$comments = Comment::factory()->count(3)->for(
    Video::factory(), 'commentable'
)->create();
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #Laravel #polimorfic #faker
ADD COMMENT
Topic
Name
2+9 =