Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Undefined index: store" when accessing Carpenter->config #6

Closed
PiotrJander opened this issue Nov 30, 2015 · 1 comment
Closed

"Undefined index: store" when accessing Carpenter->config #6

PiotrJander opened this issue Nov 30, 2015 · 1 comment

Comments

@PiotrJander
Copy link

When I do

Carpenter::add('manufacturers signups', ManufacturerSignupsTable::class);
$table = Carpenter::get('manufacturers signups');

I get the error Undefined index: store in

    protected function createStoreManager()
    {
        return new StoreManager($this->config['store'], $this->extensions['store']);
    }

When I inspect the state of the Carpenter object just before the error occurs, I can see that its config attribute is empty.

I think that I have valid configuration. I followed the instructions in the documentation and exported settings using php artisan config:publish michaeljennings/carpenter.

Note that the error is not specific to the index store. When I manage to bypass the problem by hardcoding the correct configuration values in the package code, I get similar error for indices session, paginator, and view.

I use Laravel 4.2

@michaeljennings
Copy link
Owner

I've found the issue.

I wasn't loading the config correctly in the laravel 4 service provider. It's been a while since I've worked with laravel 4 sorry.

I'm working on a fix now and that will be in v1.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants