ReflectionException

Posted 3 years ago by tiagotavares

I developed an application with Laravel version 5.1 using homestead to test. Now when i place it on the production server I get this error that i can't replicate on the local machine.

ReflectionException in Container.php line 736
Class MyMultiSelect does not exist

This class is a sleeping-owl Custom Form Item http://sleeping-owl.github.io/en/Form_Elements/Custom_Form_Elements.html

I checked for:

  • namespace errors / conflicts - I even placed the class in the global namespace
  • tried to load the file containing the class in composer.json

Filename: MyMultiSelect.php Class: MyMultiSelect namespace: Global so to access it \MyMultiSelect

admin/bootstrap.php

FormItem::register('myMultiSelect', \MyMultiSelect::class);

Can anyone help me? Thanks!

Please sign in or create an account to participate in this conversation.