@@ -756,15 +756,15 @@ |
||
| 756 | 756 | return Services::redirection()->back()->withInput()->withErrors($errors)->withStatus($code); |
| 757 | 757 | } |
| 758 | 758 | |
| 759 | - /** |
|
| 760 | - * Verifie que la requete est xhr/fetch pour eviter d'afficher la toolbar dans la reponse |
|
| 761 | - */ |
|
| 762 | - private function isAjaxRequest(): bool |
|
| 763 | - { |
|
| 764 | - return $this->request->expectsJson() || |
|
| 765 | - $this->request->isJson() || |
|
| 766 | - $this->request->is('ajax') || |
|
| 767 | - $this->request->hasHeader('Hx-Request') || |
|
| 768 | - Text::contains($this->response->getType(), ['/json', '+json']); |
|
| 769 | - } |
|
| 759 | + /** |
|
| 760 | + * Verifie que la requete est xhr/fetch pour eviter d'afficher la toolbar dans la reponse |
|
| 761 | + */ |
|
| 762 | + private function isAjaxRequest(): bool |
|
| 763 | + { |
|
| 764 | + return $this->request->expectsJson() || |
|
| 765 | + $this->request->isJson() || |
|
| 766 | + $this->request->is('ajax') || |
|
| 767 | + $this->request->hasHeader('Hx-Request') || |
|
| 768 | + Text::contains($this->response->getType(), ['/json', '+json']); |
|
| 769 | + } |
|
| 770 | 770 | } |