Jump to content

Old expenses list


Recommended Posts

I have a little problem with the deleted old expenses that remain in the drop-down menu.
I have created an expense in the Listener file, but the Lavarel log tells me that it does not
Cannot declare class App\Listeners\LandingRate_ChargePilot, because the name is already in use {"userId":6,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0):
Cannot declare class App\\Listeners\\LandingRate_ChargePilot, because the name is already in use at /home/jacquesm/phpvms/app/Listeners/ExpenseListener.php:0).
Is there a file to modify somewhere ? or to delete ?


Sorry but the site does not take my screen shot

Link to comment
Share on other sites

This error usually pops up when the filename and the inner class name declaration does not match.


It sounds weird but try using the same name like


Filename LandingRateChargePilot.php


In the file : class LandingRateChargePilot extends Listener

And if something is causing problems even afrer deleting the file, it is probably because of the cache.


Visit admin/maintenance and clean cache, if not able then you need to manually delete the application cache from


It is located at ./bootstrap/cache folder, do NOT delete the folder, delete the files inside it ;)


Hope it helps

Edited by DisposableHero
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...