This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
How to make IDE helper file for PhpStorm? IDE helper generator "barryvdh/laravel-ide-helper" cant't work with October CMS.
The latest version of barryvdh/laravel-ide-helper make the IDE helper for October CMS. But only for the vendor directory. Not for modules dir.
After installing it via composer and running php artisan ide-helper:generate
it produces the following error:
PHP Fatal error: Call to undefined method RainLab\User\Classes\AuthManager::driver() in /Applications/MAMP/htdocs/october/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 205
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Call to undefined method RainLab\\User\\Classes\\AuthManager::driver()","file":"\/Applications\/MAMP\/htdocs\/october\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Facades\/Facade.php","line":205}}
Last updated
Before run this command, try run php artisan clear-compiled
, them php artisan ide-helper:generate
and finally php artisan optimize
.
In my latest Laravel (4.2.8) and latest October (build 141) I could generate de IDE helper without problems.
I ran those commands, but I was using 140. I've updated to build 141 and have Laravel 4.2.8, but am still getting the same error. :(
Did you by chance run php artisan config:publish barryvdh/laravel-ide-helper
before running generate?
I went into the Facade.php file and made line 205 just return;
and it installed, then I returned that line back to what it was. Thanks for you your help.
Yes, I run the command php artisan config:publish barryvdh/laravel-ide-helper
after installed.
Do you try run php artisan dump-autoload
?
where do you guys put the line: 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
also in the latest install of October CMS, I do not see config:publish. How were you guys able to make this work?
1-13 of 13