user()?->hasPermission('spare_part_orders.ship') === true; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'quantity' => 'required|integer|min:1', 'note' => 'required|string', ]; } }