hpolthof / laravel-translations-db

Laravel Translations from Database
https://packagist.org/packages/hpolthof/laravel-translations-db
GNU General Public License v2.0
52 stars 37 forks source link

Laravel upgrade 5.4 giving abstract method error #25

Open shruti-ranium opened 7 years ago

shruti-ranium commented 7 years ago

Hello,

hpolthof/laravel-translations-db version used - 0.5.0 Laravel - 5.3

While upgrading laravel from 5.3 to 5.4, it is giving following error

PHP Fatal error: Class Hpolthof\Translation\DatabaseLoader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Translation\LoaderInterface::namespaces) in /vendor/hpolthof/laravel-translations-db/src/DatabaseLoader.php on line 6

[Symfony\Component\Debug\Exception\FatalErrorException]
Class Hpolthof\Translation\DatabaseLoader contains 1 abstract method and mu
st therefore be declared abstract or implement the remaining methods (Illum
inate\Translation\LoaderInterface::namespaces)

May I know the fix for it? Also, need fix for laravel 5.5 upgrade.

Thanks.

sfdsfdsfdesfdsghefasefs commented 6 years ago

i m getting this error in cmd

Class Hpolthof\Translation\DatabaseLoader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Translation\LoaderInterface::namespaces)

When i run this command php artisan vendor:publish --provider='Hpolthof\Translation\ServiceProvider'