We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e9217b + 48f435a commit e3d6c20Copy full SHA for e3d6c20
app/Controllers/Loans/LoansController.php
@@ -7,6 +7,7 @@
7
use App\Models\LoanModel;
8
use App\Models\MemberModel;
9
use CodeIgniter\Exceptions\PageNotFoundException;
10
+use CodeIgniter\HTTP\Method;
11
use CodeIgniter\I18n\Time;
12
use CodeIgniter\RESTful\ResourceController;
13
@@ -237,7 +238,7 @@ function ($carry, $item) {
237
238
*/
239
public function new($validation = null, $oldInput = null)
240
{
- if ($this->request->getMethod() !== 'POST') {
241
+ if ($this->request->getMethod() !== Method::POST) {
242
return redirect()->to('admin/loans/new/members/search');
243
}
244
0 commit comments