Last active
August 29, 2015 14:03
-
-
Save iqbalmalik89/d34cf968415bf3162dc0 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
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