Back

Please help to install Forms & HTML package


Dear freinds!

I try to install Forms & HTML package

Server Software CentOS release 6.10 (Final)

The file composer.json content is: { "require": { "laravel/installer": "^2.0", "laravelcollective/html": "~5.0" } }

I've run composer require "laravelcollective/html":"^5.4.0"

Screenshot #1 http://prntscr.com/mqd7vj

Screenshot #2 http://prntscr.com/mqd8cs

config/app.php:

 'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Collective\Html\HtmlServiceProvider::class,

'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class

But unfortunately I get the meaasge

 (1/1) FatalErrorException

Class 'HTML' not found
in b638bb9d8c16d8ec383069897e1398c1e395f97e.php line 24

Please help!

Thank you beforehand!

Andrew replied 3 weeks ago

It operate now!

The problem was with the case.

https://stackoverflow.com/questions/28847726/laravel-5-class-html-not-found

quote here I think it's a case sensitive problem.

If you register it as 'HTML'=> 'Illuminate\Html\HtmlFacade' in app.php, you can't use it as html or Html ( then it will only work when you use HTML).

Alexandru replied 3 weeks ago

Hei Andrew, why are you using form builder in the first place, there are no real benefits of using it, and if you have to work with a forntend developer he might get scared of it

Andrew replied 2 weeks ago

Hei Andrew, why are you using form builder in the first place...

Sorry, I am a beginner in Laravel. What do you mean "in the first place"?

jim1506 replied 2 weeks ago

I have found this form builder rather limited. For example I wanted to populate a select list with a database and marked selected based on criteria. Also I wanted some visual idea. Then we come to baby steps forms and page breaks.

My company have their own form builder which is visual and you can save forms and just cut and paste the code into your view. A little tweaking is necessary (element names) but it is minutes.

If you look at http://tdbtools.com you can see an idea of what it is about.

I am one of the directors of tdbcomputing so go to that site and email the webmaster (me!) and I will give you access if it helps.

Jim


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us