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

Herbert-Laravel Model Error #162

Open
muubpon opened this issue Nov 11, 2016 · 4 comments
Open

Herbert-Laravel Model Error #162

muubpon opened this issue Nov 11, 2016 · 4 comments

Comments

@muubpon
Copy link

muubpon commented Nov 11, 2016

What is the cause of this error message? What should I do?

Fatal error: Uncaught exception 'Illuminate\Contracts\Container\BindingResolutionException' with message 'Target [Illuminate\Contracts\Debug\ExceptionHandler] is not instantiable.'

OS: Windows
PHP: 5.6.24
Herbert: current version

@ken-bem
Copy link

ken-bem commented Nov 11, 2016

Can you post the code where you used the Exception Handler?

@muubpon
Copy link
Author

muubpon commented Nov 14, 2016

This is the code, actually, I already used this code last August and it was successful. But now, it has an error.

<?php

namespace Websiteria\Controllers;

use Herbert\Framework\Models\Post;

/**
 * Class DefaultController.
 */
class DefaultController {

    public function index() {
        $a = Post::find(86);
    }

}

@anatree
Copy link

anatree commented Dec 23, 2016

Not sure if it's the right direction but please try to add to your composer.json dependencies:

"illuminate/container": "~5.1.0",

Then remove vendor directory and composer.lock and re-run composer-install

@lucas-viewup
Copy link

Works fine, @anatree! it's working fine in Windows 10, but I didn't understand the approach to develop outside of plugins directory. I didn't achieve the symbolic link like in Linux or Mac OSX.

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

No branches or pull requests

5 participants