NotoriousWebmaster
NotoriousWebmaster

Reputation: 3568

Laravel 5: Class 'HTML' not found

I'm just getting started with Laravel. I'm in a 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 in 002eb18bb71fd3ec1de058967b799d49 line 6: Class 'HTML' not found

What am I doing wrong? Thanks for your help.

Upvotes: 5

Views: 4298

Answers (2)

shijinmon Pallikal
shijinmon Pallikal

Reputation: 994

Please use above links and last change HTML to Html.

eg:

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

to

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

its working.

Upvotes: 3

Pawel Bieszczad
Pawel Bieszczad

Reputation: 13325

Searching on google I found this

"By default in Laravel 5.0, Html and Form are not embedded anymore."

You need to add this package to you application.

Upvotes: 5

Related Questions