Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
esyede committed Feb 4, 2024
1 parent b2fd1b9 commit 8a8bb61
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/docs/data/en/job.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ schedule an e-mail to an user 24 hours after the registration.
```php
$name = 'email24';
$payloads = ['user_id' => 1, 'message' => 'Welcome new member!'];
$scheduled_at = Date::make('now')->remake('+24 hours');
$scheduled_at = now()->addDay();

Job::add($name, $payloads, $scheduled_at);
```
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/data/id/job.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Ini akan berguna ketika anda perlu, misalnya, menjadwalkan email ke pengguna 24
```php
$name = 'email24';
$payloads = ['user_id' => 1, 'message' => 'Welcome new member!'];
$scheduled_at = Date::make('now')->remake('+24 hours');
$scheduled_at = now()->addDay();

Job::add($name, $payloads, $scheduled_at);
```
Expand Down
4 changes: 2 additions & 2 deletions system/console/commands/stubs/auth/controllers/password.stub
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Auth_Password_Controller extends Controller
DB::table('password_resets')->insert([
'email' => Input::get('email'),
'token' => $token,
'created_at' => Date::make(),
'created_at' => now(),
]);

$html = View::make('auth.email.reset', compact('token'))->render();
Expand Down Expand Up @@ -122,7 +122,7 @@ class Auth_Password_Controller extends Controller

DB::table('users')->where('id', $user->id)->update([
'password' => Hash::make(Input::get('password')),
'updated_at' => Date::make(),
'updated_at' => now(),
]);

DB::table('password_resets')->delete($reset->id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Auth_Register_Controller extends Controller
'name' => Input::get('name'),
'email' => Input::get('email'),
'password' => Hash::make(Input::get('password')),
'created_at' => Date::make(),
'created_at' => now(),
]);

Auth::login($user_id);
Expand Down

0 comments on commit 8a8bb61

Please sign in to comment.