mass-assignment


massAssignment using artisan tinker


I got the following error while trying to insert bulk data in DB table.
> D:\wamp\www\laravel>php artisan tinker Psy Shell v0.5.2 (PHP 5.5.12 ΓÇö cli) by Justin Hileman
>>> factory(App\User::class, 100)->create(array('email', 'password', 'firstname','lastname', 'dob', 'phone', 'website', 'role_id')); Invalid ArgumentException with message 'A four digit year could not be found Data missing'.
Fillable fields in App\User
protected $fillable = ['email', 'password', 'firstname', 'lastname', 'dob', 'phone', 'website', 'role_id'];
Can someone tell me what might be going wrong?

Related Links

massAssignment using artisan tinker

Categories

HOME
xml
design-patterns
paraview
depth
hessian
rendering
appcelerator
zip
bookmarks
spring-session
joomla3.0
computer-science
syntaxnet
project
openstreetmap
intercom
gource
solrcloud
microsoft-ocr
ksh
php-mysqlidb
jboss6.x
shared
corpus
fragment-backstack
android-maps
firebase-analytics
subclass
aws-codecommit
dst
instantiation
nested-lists
python-import
modernizr
mongoose-schema
numberpicker
mcustomscrollbar
azure-arm
doc
portforwarding
wc
berkeley-db-je
memory-mapping
rfc3339
term
rserve
modelsim
filehandle
avx
cpu-cache
mathcad
chromium-os
pure-css
cubism.js
xcode-server
macaulay2
wso2developerstudio
android-dateutils
swizzling
lua-telegram-bot
php-socket
fink
ascii-art
rasterize
asyncdisplaykit
boomerang
toran-proxy
decimalformat
assertion
vigenere
finalbuilder
matlab-deployment
entity-framework-4.3
variadic-templates
dbaccess
nodelist
boost-program-options
filesplitting
spy++
gii
ignite-ui
high-resolution
code-duplication
merb
web-farm
garbage
lambdaj
inkcanvas
node-redis
workflow-services
pylucene
drawtobitmap
echo3
wcf-instancing
application-planning
pnrp

Resources

Encrypt Message