This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ajvan.ivan590
ajvan.ivan590

How to make IDE helper file for PhpStorm? IDE helper generator "barryvdh/laravel-ide-helper" cant't work with October CMS.

emzero439
kuroski
pymarco
Sam Kamerer
planetadeleste
planetadeleste

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.

codivist
codivist

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

planetadeleste
planetadeleste

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.

codivist
codivist

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?

codivist
codivist

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.

planetadeleste
planetadeleste

Yes, I run the command php artisan config:publish barryvdh/laravel-ide-helper after installed. Do you try run php artisan dump-autoload?

cmosguy
cmosguy

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?

Flynsarmy
Flynsarmy

I've written an IDE Helpers plugin that you can download here. There's also a branch for the RC build for those of you using it.

1-13 of 13

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.