Use artisan commands to clear all caches and the compiled file.
Jan 4, 2017
3
Level 2
Create custom helper in Lumen framework
I try to create a custon helper in Lumen,
1- i create helper class in app folder
2- i add to composer.json in autoload: "files": [ "app/helpers.php" ]
3- i create HelperServiceProvider
4- i register my HelperServiceProvider
$app->register(App\Providers\HelperServiceProvider::class);
5- i RUN COMPOSER DUMP-AUTOLOAD
But : i still get error like :
Warning: require(C:\wamp\www\lumen-api\vendor\composer/../../app/helpers.php): failed to open stream: No such file or directory in
Please or to participate in this conversation.