Laravel-Backpack / LangFileManager

A quick interface to edit Laravel language files, for Backpack.
http://backpackforlaravel.com
MIT License
92 stars 42 forks source link

405 method not allowed on POST search request in language list #49

Closed gabriel-cardoso closed 6 years ago

gabriel-cardoso commented 6 years ago

Bug report

405 error on POST request on admin/language/search request used by AJAX table

What I did:

Installed LangFileManager and tried to access the admin/language page

What I expected to happen:

See a list of available languages

What happened:

JS alert notifying and error.

What I've already tried to fix it:

Changing this line https://github.com/Laravel-Backpack/LangFileManager/blob/master/src/app/Http/routes.php#L8 with CRUD::resource('language', 'LanguageCrudController');

Backpack, Laravel, PHP, DB version:

Backpack v0.8.2 Laravel v5.5.20 PHP 7.10.1 DB Mysql

gabriel-cardoso commented 6 years ago

Made a PR https://github.com/Laravel-Backpack/LangFileManager/pull/50 Let me know if I missed something here, kind of new to Laravel and Backpack... Thanks !

tabacitu commented 6 years ago

Hi @gabriel-cardoso ,

The PR is perfect, thank you. Very good job!

Cheers!