bestmomo / laravel5-example

Simple laravel5 example for tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class 'Collective\Html\Formbuilder' not found

Janaksan opened this issue · comments

q1

FatalErrorException in FormBuilder.php line 3:
Class 'Collective\Html\Formbuilder' not found

Is it a fresh installation or did you make a change on previous installation ?

fresh installation from your repository.and i follow your installation step

In vendor/composer/autoload_classmap.php is there this line :

'Collective\\Html\\FormBuilder' => $vendorDir . '/laravelcollective/html/src/FormBuilder.php'

yes there

All seems ok... there is something weird. Try a new fresh installation.

no bro .same problem after fresh install.

I dont understand what happens for you. I've made an install with the repo to see if there is some bug but all works fine for me. Did you try a basic Laravel installation with this package ?

Had the same issue with my code. Not in front on my computer right now, but it was due to the Submit field that I used on a project using L4 -> I had to add (or remove i don't remove) a parameter to make it work.

Hope that helps

I also encountered this. Actually, it is looking for "\Collective\Html\Formbuilder", while the actual class is "FormBuilder". So you just need to capitalize the "B" on line 3 in app/Services/Html/FormBuilder.php so it becomes "class FormBuilder extends \Collective\Html\FormBuilder {" That's all.

FatalErrorException in FormBuilder.php line 3:
Class 'Collective\Html\Formbuilder' not found What we do?

Sorry, I'm on Windows and it doesn't wonder about that ! I've corrected it in this commit