L
L
Lobster2017-06-23 19:04:12
Laravel
Lobster, 2017-06-23 19:04:12

Doesn't see the HTML class! Laravel?

I installed the Forms & HTML package:

> composer require "laravelcollective/html":"^5.4.0"
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing laravelcollective/html (v5.4.8)
    Downloading: 100%

Connected in providers:
'providers' => [
    // ...
    Collective\Html\HtmlServiceProvider::class,
    // ...
  ],

and in aliases
'aliases' => [
    // ...
      'Form' => Collective\Html\FormFacade::class,
      'Html' => Collective\Html\HtmlFacade::class,
    // ...
  ],

I'm trying to create an img tag and display a picture:
{!! HTML::image('assets/img'.$page->images) !!}
As a result, this error flies out:
s010.radikal.ru/i313/1706/32/a47e2a384b13.jpg
(1/1) FatalErrorException
Class 'HTML' not found
in c0529dc04b30e9c01031d8f2075ae69bb4a442c8.php (line 16)

O_o what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2017-06-23
@alexey-m-ukolov

'HTML' !== 'HTML'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question