Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 21, 2024
1 parent d19b2a9 commit 9a8bc48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions resources/lang/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
'text_side_menu_user_role' => 'Roles',

'text_logout' => 'Logout',
'text_logged_in' => 'Already have an account? <a href="%s">Login Here</a>',
'text_logged_out' => 'Welcome back <b>%s</b>, Not You? <a href="javascript:;" data-request="%s">Logout</a>',
'text_impersonating_user' => 'Impersonating user',
'text_leave' => 'Leave',

Expand Down
3 changes: 1 addition & 2 deletions src/Auth/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Igniter\User\Auth\Models;

use Carbon\Carbon;
use Exception;
use Igniter\Flame\Database\Model;
use Igniter\Flame\Exception\SystemException;
use Igniter\User\Models\Notification;
Expand Down Expand Up @@ -126,7 +125,7 @@ public function checkRememberToken($token)

public function updateLastSeen($expireAt)
{
return $this->update(['last_seen' => $expireAt]);
return $this->updateQuietly(['last_seen' => $expireAt]);
}

//
Expand Down
9 changes: 5 additions & 4 deletions src/Requests/CustomerRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ public function rules()
'newsletter' => ['sometimes', 'required', 'boolean'],
'customer_group_id' => ['required', 'integer'],
'status' => ['required', 'boolean'],
'addresses.*.address_id' => ['nullable', 'integer'],
'addresses.*.address_1' => ['required', 'string', 'min:3', 'max:255'],
'addresses.*.address_2' => ['string'],
'addresses.*.city' => ['required', 'string', 'min:2', 'max:255'],
'addresses.*.state' => ['string', 'max:255'],
'addresses.*.postcode' => ['string'],
'addresses.*.address_2' => ['nullable', 'string'],
'addresses.*.city' => ['nullable', 'string', 'min:2', 'max:255'],
'addresses.*.state' => ['nullable', 'string', 'max:255'],
'addresses.*.postcode' => ['nullable', 'string'],
];
}
}

0 comments on commit 9a8bc48

Please sign in to comment.