This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

aleXela
aleXela

Hey, i'm trying to add middlewere to my plugin, and getting an error:

[22-Jan-2019 20:14:00 UTC] PHP Fatal error: Uncaught ReflectionException: Class path.storage does not exist in /Applications/MAMP/htdocs/israplanet.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:752 Stack trace:

0 /Applications/MAMP/htdocs/israplanet.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(752): ReflectionClass->__construct('path.storage')

1 /Applications/MAMP/htdocs/israplanet.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('path.storage')

2 /Applications/MAMP/htdocs/israplanet.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\Container\Container->resolve('path.storage', Array)

3 /Applications/MAMP/htdocs/israplanet.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\Container\Container->make('path.storage', Array)

4 /Applications/MAMP/htdocs/israplanet.com/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(110): Illuminate\Foundation\Application->make(' in /Applications/MAMP/htdocs/israplanet.com/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 752

even the example from the doc https://octobercms.com/docs/plugin/registration#registering-middleware gives the same. Any chance someone got this one as well? thanks

p.s. tried to add

$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config'); $app->instance('path.storage', app()->basePath() . DIRECTORY_SEPARATOR . 'storage');

to bootstrap\app.php

didnt helped

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.