'int', 'permissions' => 'array', ]; public static array $validationRules = [ 'name' => 'required|string|max:64', 'description' => 'nullable|string|max:255', 'sort_id' => 'sometimes|numeric', ]; public $timestamps = false; /** * Gets the permissions associated with an admin role. */ public function permissions(): HasMany { return $this->hasMany(Permission::class); } }