feature/CreateDocumention #12

Merged
amirghasempoor merged 9 commits from feature/CreateDocumention into develop 2026-05-13 10:16:38 +00:00
Collaborator
No description provided.
faezeh added 6 commits 2026-05-13 06:01:49 +00:00
amirghasempoor approved these changes 2026-05-13 06:48:38 +00:00
@@ -0,0 +57,4 @@
'province_name' => $province->name,
'city_id' => $request->city_id,
'city_name' => $city->name,
'level' => $request->level,
Collaborator

have no level field in expert

have no level field in expert
amirghasempoor marked this conversation as resolved
@@ -0,0 +93,4 @@
'province_name' => $province->name,
'city_id' => $request->city_id,
'city_name' => $city->name,
'level' => $request->level,
Collaborator

no level

no level
amirghasempoor marked this conversation as resolved
@@ -0,0 +24,4 @@
$request,
allowedFilters: ['*'],
allowedSortings: ['*'],
allowedSelects: ['id', 'name', 'description']
Collaborator

no description field in roles

no description field in roles
amirghasempoor marked this conversation as resolved
@@ -0,0 +29,4 @@
allowedSortings: ['*'],
allowedSelects: ['id', 'username','first_name', 'last_name','kyc_status','national_id',
'phone_number','postal_code','province_id','province_name', 'city_id', 'city_name',
'birth_date','tax_id', 'password', 'email', 'level', 'key_status'],
Collaborator

key_status??
level -> authority_level

key_status?? level -> authority_level
amirghasempoor marked this conversation as resolved
@@ -0,0 +23,4 @@
public function rules(): array
{
return [
'username' => 'required|string|max:255|unique:users,username',
Collaborator

checking unique for expert in users table?

checking unique for expert in users table?
amirghasempoor marked this conversation as resolved
@@ -0,0 +32,4 @@
'first_name' => 'string|max:255',
'last_name' => 'string|max:255',
'national_id' => ['string', 'max:20',
Rule::unique('users', 'national_id')->ignore($this->user->id),],
Collaborator

wrong unique check

wrong unique check
@@ -0,0 +34,4 @@
'last_name' => 'string|max:255',
'national_id' => ['string', 'max:20',
Rule::unique('users', 'national_id')->ignore($this->user->id),],
'password' => 'nullable|string|min:8|confirmed',
Collaborator

password nullable??

password nullable??
@@ -0,0 +30,4 @@
'address' => $this->address,
'province_name' => $this->province_name,
'city_name' => $this->city_name,
'roles' => $this->roles()
Collaborator

user have no roles or permissions

user have no roles or permissions
faezeh added 1 commit 2026-05-13 07:04:51 +00:00
faezeh added 1 commit 2026-05-13 10:04:11 +00:00
faezeh added 1 commit 2026-05-13 10:16:12 +00:00
amirghasempoor merged commit 6f06218cb2 into develop 2026-05-13 10:16:38 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: payment/backend#12