Giter Club home page Giter Club logo

Comments (28)

barryvdh avatar barryvdh commented on May 13, 2024

Only for those 2 classes? What version of laravel/framework are you using? 4.0 or 5.1?
Do you have any other packages installed?

from laravel-ide-helper.

sebolio avatar sebolio commented on May 13, 2024

@barryvdh I think you meant 4.1

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Yes, I meant 4.1, not 5.1

from laravel-ide-helper.

voidman avatar voidman commented on May 13, 2024

I'm usinig 4.0.x

"require": {
    "laravel/framework": "4.0.*"
},
"require-dev": {
    "raveren/kint": "dev-master",
    "way/generators": "dev-master",
    "barryvdh/laravel-ide-helper": "1.*"
},

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Cannot really reproduce this, is this a clean install or did you change some facades? Do you have the config published? If so, try to remove it (or re-publish)

from laravel-ide-helper.

voidman avatar voidman commented on May 13, 2024

After I run 'composer update' today, It seems to work ok now.

from laravel-ide-helper.

D1kz avatar D1kz commented on May 13, 2024

Facing the same issue today. I'm using Laravel 4.1.12

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

But it still works? Only that class is skipped?

from laravel-ide-helper.

D1kz avatar D1kz commented on May 13, 2024

@barryvdh Yes. I've removed published config, but it still cannot see those two classes Illuminate\Support\Facades\Auth.
Illuminate\Support\Facades\Password.

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Any packages you are using? And default config?

from laravel-ide-helper.

D1kz avatar D1kz commented on May 13, 2024

@barryvdh Thats my configuration so far:

"require": {
        "raveren/kint": "dev-master",
        "laravel/framework": "4.1.*",
        "intervention/image": "dev-master",
        "laravelbook/ardent": "dev-master"
    },
    "require-dev": {
        "way/generators": "dev-master",
        "barryvdh/laravel-ide-helper": "1.*",
        "codeception/codeception": "*"
    },

from laravel-ide-helper.

Leenug avatar Leenug commented on May 13, 2024

I too have a similar issue:

Exception: Class auth does not exist
Skipping Illuminate\Support\Facades\Auth.
Exception: Class cache does not exist
Skipping Illuminate\Support\Facades\Cache.
Exception: Class auth does not exist
Skipping Illuminate\Support\Facades\Password.
Class Rocketeer\Facades\Rocketeer is not found.

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Also no strange packages? Both on 4.1? And you have the default service providers etc, so also for Auth and Cache?

from laravel-ide-helper.

Leenug avatar Leenug commented on May 13, 2024

Hi Barry,

Pretty standard packages, no custom Service Providers at all, see my required packages below:

"require": {
        "laravel/framework": "4.1.*",
        "composer/installers": "dev-master",
        "stolz/assets": "dev-master",
        "creolab/laravel-modules": "dev-master",
        "cartalyst/sentry": "2.1.*",
        "bugsnag/bugsnag-laravel": "1.*",
        "fzaninotto/faker": "1.3.*@dev",
        "rackspace/php-opencloud": "1.9.0"
    },
    "require-dev": {
        "barryvdh/laravel-ide-helper": "1.*",
        "barryvdh/laravel-debugbar": "dev-master"
    },

Thanks,
Lee

from laravel-ide-helper.

rubberneck avatar rubberneck commented on May 13, 2024

I was also having this issue. I was able to track it down to using providers in a dev environment /app/config/dev/app.php file and not the main /app/config/app.php. This must be some type of Laravel bug because after looking around some other things were broken as well like doing "artisan env" would return Command "env" is not defined. After moving the providers back into the main app.php everything is working fine.

from laravel-ide-helper.

Leenug avatar Leenug commented on May 13, 2024

@rubberneck Thanks for this - I can confirm moving my providers back into the global config file resolves this for me also.

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

So do your environments in artisan work correct?

$ php artisan env
>> Current application environment: local

from laravel-ide-helper.

Leenug avatar Leenug commented on May 13, 2024

Hi Barry,

When I have providers in app/config/development/app.php $ php artisan env returns:

 [InvalidArgumentException]     
  Command "env" is not defined

However, when I place everything in app/config/app.php the env command runs as expected, and the class not found issue when running $ php artisan ide-helper:generate is resolved.

I suspect this is a bug in Laravel.

Lee

from laravel-ide-helper.

rubberneck avatar rubberneck commented on May 13, 2024

I have a bug open in laravel/framework#3327 for it but i am not sure i explained it well. If anyone knows what is causing it please add some info.

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Okay I indeed have the same issue when moving some of the providers to local config. Not sure what is causing it, but it does seem to be an Laravel issue indeed.

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Okay, so the issue has been resolved, I guess (as you can see in the linked issue).

Adding a Provider to your local/app.php array seems to work, but what actually happens, is that the index is replaced, something like this:

//config/app.php
'providers' => array(
    0 => 'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    1 => 'Illuminate\Auth\AuthServiceProvider',
    2 => 'Illuminate\Cache\CacheServiceProvider',
    //etc
)

//config/local/app.php
'providers' => array(
   0 => 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
)

//Merged result
'providers' => array(
    0 => 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
    1 => 'Illuminate\Auth\AuthServiceProvider',
    2 => 'Illuminate\Cache\CacheServiceProvider',
    //etc
)

So don't do that, it will lead to unexpected results..

New method should do the trick in 4.1-dev:

'providers' => append_config(array(
    'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
));

See laravel/framework@222e5c6

So you could also do now:

//config/local/app.php
'providers' => array(
   10000 => 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
)

from laravel-ide-helper.

shehi avatar shehi commented on May 13, 2024

@barryvdh : I have this same issue after upgrading to L5.1... Any ideas?

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Yes, see above

from laravel-ide-helper.

shehi avatar shehi commented on May 13, 2024

Uhm... Sorry, what you mean? All the posts above are related to L4.1. In L5.1 we have only one config file and mine is similar to official file, nothing wrong there. Am I missing something?

from laravel-ide-helper.

barryvdh avatar barryvdh commented on May 13, 2024

Then please create a new issue.

from laravel-ide-helper.

HMNordin avatar HMNordin commented on May 13, 2024

Had the same issue. Only appeared when i ran composer install --no-dev. It was my mistake i did not read this:

"instead of adding the service provider in the config/app.php file, you can add the following code to your app/Providers/AppServiceProvider.php file, within the register() method:"

I had Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, in app config and in AppServiceProvider. Removed it and all my problems where solved. Hope this helps someone.

from laravel-ide-helper.

Aderemi avatar Aderemi commented on May 13, 2024

Most of the times the issue of 'class ****(in lower case) does not exist' are caused by something different entirely. If you open bootstrap/cache/services.php you will see the **** that is being complained about.

...
...
     'hash' => 'Illuminate\\Hashing\\HashServiceProvider',
...
...

In my own case but Laravel complained class hash does not exist. With this, I deduced that the problem was not hash, it was something that was thrown before services.php file could be loaded.
It turned out that I was right I simply dumped $e on the first line of report() function in app/Exceptions/Handler.php to see the real error which happened to be database connection issues in my case

from laravel-ide-helper.

waweru-karanja avatar waweru-karanja commented on May 13, 2024

i am experiencing a similar problem in laravel 8 after updating it ... how can is solve this

from laravel-ide-helper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.