Skip to content

Instantly share code, notes, and snippets.

@saeedhajinasiri
Created June 5, 2020 12:01
Show Gist options
  • Save saeedhajinasiri/8dc5ac47bf0e934c9a1d6ab8651c7e47 to your computer and use it in GitHub Desktop.
Save saeedhajinasiri/8dc5ac47bf0e934c9a1d6ab8651c7e47 to your computer and use it in GitHub Desktop.
<?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