Laravel 5: Class 'HTML' not found

I am just starting with Laravel. I use the controller method and I say:

return \View::make('scrape', $data);

Then in scrape.blade.php I have:

@extends('layouts.master');

Finally, in layouts / master.blade.php, I have:

{{ HTML::style('css/bootstrap.min.css') }}

And that where things seem to fall apart, and I get:

FatalErrorException at 002eb18bb71fd3ec1de058967b799d49 line 6: Class 'HTML' not found

What am I doing wrong? Thank you for your help.

+4
source share
2 answers

Google search I found this

"By default, Laravel 5.0 Html and Form are no longer implemented."

You need to add this package to your application.

+4
source

, HTML HTML.

,

{{ HTML::style('css/bootstrap.min.css') }} 

{{ Html::style('css/bootstrap.min.css') }}. 

.

+3

All Articles