Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

sample test tinker php artisan

>>> $admin = new AppModelsAdminUser
=> AppModelsAdminUser {#3379}
>>> $admin->name = 'Admin'
=> "Admin"
>>> $admin->email = 'admin@ids.com'
=> "admin@ids.com"
>>> $admin->password = Hash::make('manojd123')
=> "$2y$10$s7IfVxrc48RYUbYwIbOuXOQRKdDZzXb.4RIVQ1P8bWPcxY6s1IPZe"
>>> $admin->job_title = 'Admin'
=> "Admin"
>>> $admin->save()
=> true
>>>
 
PREVIOUS NEXT
Tagged: #sample #test #tinker #php #artisan
ADD COMMENT
Topic
Name
7+4 =