laravel-translations-db icon indicating copy to clipboard operation
laravel-translations-db copied to clipboard

Laravel upgrade 5.4 giving abstract method error

Open shruti-ranium opened this issue 7 years ago • 1 comments

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.

shruti-ranium avatar Sep 08 '17 06:09 shruti-ranium

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'

sfdsfdsfdesfdsghefasefs avatar Dec 18 '17 13:12 sfdsfdsfdesfdsghefasefs