Monday, March 20, 2017

Cannot use a custom PHP plugin in Laravel

I have installed a plug-in called tet. I copied tet.so in the plug in folder and included it in php.ini

I have checked phpinfo and says that the plugin is enabled and running.

I have created a php page to test it.

<?php
new tet();
?>

And works perfectly.

However when I try this on my laravel it gives me this error:

FatalThrowableError in mycontroller.php line 16: Class 'App\Http\Controllers\tet' not found

tet is not a controller. Tet is a class created by the php plugin. How do I include this in laravel?



via prgrm

Advertisement