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

Problem with using this #13

Open
thomas-alrek opened this issue Jan 13, 2017 · 1 comment
Open

Problem with using this #13

thomas-alrek opened this issue Jan 13, 2017 · 1 comment

Comments

@thomas-alrek
Copy link

Hello.

So I installed this package with composer.

I then created a new Laravel model:

<?php
    
    namespace App;

    use Jenssegers\Model;

    class Test extends Model {
    
    }

Which resulted in PHP Fatal error: Class 'Jenssegers\Model' not found

I then changed the use statement to

use \Jenssegers\Model;

Which resulted in the same error.

What am I doing wrong? How can I correctly extend this class to write a custom Model?

@ghost
Copy link

ghost commented Feb 2, 2017

Try below:

use Jenssegers\Model\Model;

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

1 participant