Comments (28)
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.
@barryvdh I think you meant 4.1
from laravel-ide-helper.
Yes, I meant 4.1, not 5.1
from laravel-ide-helper.
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.
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.
After I run 'composer update' today, It seems to work ok now.
from laravel-ide-helper.
Facing the same issue today. I'm using Laravel 4.1.12
from laravel-ide-helper.
But it still works? Only that class is skipped?
from laravel-ide-helper.
@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.
Any packages you are using? And default config?
from laravel-ide-helper.
@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.
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.
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.
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.
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.
@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.
So do your environments in artisan work correct?
$ php artisan env
>> Current application environment: local
from laravel-ide-helper.
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.
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.
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.
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',
));
So you could also do now:
//config/local/app.php
'providers' => array(
10000 => 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
)
from laravel-ide-helper.
@barryvdh : I have this same issue after upgrading to L5.1... Any ideas?
from laravel-ide-helper.
Yes, see above
from laravel-ide-helper.
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.
Then please create a new issue.
from laravel-ide-helper.
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.
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.
i am experiencing a similar problem in laravel 8 after updating it ... how can is solve this
from laravel-ide-helper.
Related Issues (20)
- It just doesn't suggest methods from Illuminate\Database\Eloquent\Builder on my model, like "first()" or "where()" HOT 4
- Installation error on latest laravel installation HOT 3
- Is it Possible to Add auto-complete in form request classes?
- Models that have `static::$snakeAttributes` set to `true` should use attribute names without case conversion
- Allow configuration of the expectedMixins when calling Eloquent::writeEloquentModelHelper()
- Model's --write duplicates array properties that have summary and array key-value types added HOT 3
- Modifications required to support Laravel 11 HOT 1
- [idea] Refactor to use phpstan/phpdoc-parser HOT 2
- [2.15.0] Inserting AllowDynamicProperties attribute breaks final classes HOT 4
- Nova Resources HOT 8
- Mixin Information Provided by Packages HOT 2
- Attribute accessor/mutator without the counterparts generate wrong model properties HOT 1
- Support for Eloquent Scope extensions HOT 1
- Not working with MSSQL 2016 and below HOT 2
- Wrong return type get() method HOT 1
- @mixin Alternative HOT 1
- I believe I've been able to improve some of the intellisense for model queries, please implement this (but maybe expand it first) HOT 4
- Comment keeps getting appended
- The command "ide-helper:models" is not working correctly. HOT 1
- Exception: No query results for model inside on mutator or accessor HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-ide-helper.