Created
June 5, 2020 12:01
-
-
Save saeedhajinasiri/8dc5ac47bf0e934c9a1d6ab8651c7e47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::get('members', function() { | |
$user = App\Member::create([ | |
'first_name' => 'saeed', | |
'last_name' => 'nasiri', | |
'email' => 'saeed.nasiri@gmail.com', | |
'password' => '!supersecretpassword!', | |
'last_login' => Carbon\Carbon::now(), | |
'settings' => ['two_factor_aut' => true, 'session_time' => 1200], | |
'created_at' => Carbon\Carbon::now(), | |
'updated_at' => Carbon\Carbon::now() | |
]); | |
$member = App\Member::find(1); | |
echo $member->last_login . ' | |
'; | |
echo $member->full_name . ' | |
'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment