Skip to content

Instantly share code, notes, and snippets.

@iqbalmalik89
Last active August 29, 2015 14:03
Show Gist options
  • Save iqbalmalik89/d34cf968415bf3162dc0 to your computer and use it in GitHub Desktop.
Save iqbalmalik89/d34cf968415bf3162dc0 to your computer and use it in GitHub Desktop.
Route::get('/', function()
{
Event::listen('test', function($user)
{
$date = '2014-07-09 15:58:17';
$user = new User();
$user->username = 'admin';
$user->password = 'password';
$user->updated_at = $date;
$user->create_at = $date;
$user->created_at = $date;
$user->save();
});
//$event = Event::fire('test', array('user'));
Event::queue('test', array('user'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment