1

I was trying to add bootstrap to my laravel app but its not working properly. while creating text area using bootstrap, i can see the text area but below text area its showing error:

Whoops, looks like something went wrong.

1/1
FatalErrorException in bd4dbbba0de3e338e8b6884bcb514092774bce38.php line 21:
Class 'HTML' not found
in bd4dbbba0de3e338e8b6884bcb514092774bce38.php line 21

home.blade.php

<!Doctype html>
<html>
    <head>
    <title>
        BloggerFramework    
    </title>



    </head>

    <body>

    <div class="form-group">
        <label for="article">Write something Awesome</label>
        <textarea class="form-control" rows="20" cols="100" id="article"></textarea>
    </div>

    </body> 

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

    {{ HTML::script('js/jquery.min.js') }}
    {{ HTML::script('js/jquery.ui.min.js') }}
    {{ HTML::script('js/bootstrap.min.js') }}

</html>

can someone suggest any best practices for using front-end with laravel app

1

2 Answers 2

1

Since Laravel 5 HTML and Form are removed from the framework and you need to install Laravel HTML & Forms manually.

If you've already installed this package, but you're still getting same error, try to run composer dumpauto command.

Sign up to request clarification or add additional context in comments.

10 Comments

Fatal error: Class 'Illuminate\Foundation\Application' not found in C:\xampp\htdocs\Laravel_apps\App\bootstrap\app.php on line 14 showing errors i followed the steps
Warning: Ambiguous class resolution, "CreatePasswordResetsTable" was found in bo th "C:/xampp/htdocs/Laravel_apps/App/database/migrations/2014_10_12_100000_creat e_password_resets_table.php" and "C:/xampp/htdocs/Laravel_apps/App/database/migr ations/2016_04_17_072045_create_password_resets_table.php", the first will be us ed. getting this while running composer update
For some reason you have two migrations with the same class name. Delete one of them.
FatalErrorException in ProviderRepository.php line 146: Class 'Collective\Html\HtmlServiceProvider' not found now the textarea also gone
Try to run composer dumpauto
|
0

Laravel 5* Framework has removed the Inbuild FORM And HTML support.

Install Laravel Collective package for Form And Html Support.

If it is already installed then use Html instead of HTML.

If Not then follow the below steps:

composer require laravelcollective/html

Next, add your new provider to the providers array of config/app.php:

'providers' => [Collective\Html\HtmlServiceProvider::class,],

Finally, add two class aliases to the aliases array of config/app.php:

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

Example : https://laravelcollective.com/docs/5.1/html

1 Comment

Thanks, its working but can u tell any best documentation for learning about using front end with laravel 5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.