mardi 21 juin 2016

Form and Html tag not working laravel 5.2

I am new to laravel 5.2 framework and founding difficult to configure the Form and Html packages into directory, I have gone through the documentation and followed each line, but still I get the same error. Class "Form" not found.

http://ift.tt/28KcHIq

This is my example view, this is how Im using form tag.

     {!!Form::open(array('url' => '' , 'method' => 'get'))!!}
            {!! Html::link( url( '/frontend/posts/like',$post->id )             'Like',     ['class' => 'btn btn-primary like-btn', 'data-status' => 'like' ] ) !!}
        {!! Html::link( url( '/frontend/posts/like', $post->id ), 'Dislike', [ 'class' => 'btn btn-primary like-btn', 'data-status' => 'dislike' ] ) !!}
  {!!Form::close()!!} 

I have included the following things in app.php file Collective\Html\HtmlServiceProvider::class, (in providers) 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, (in aliases)

I have this in my composer.json-

"require": {"laravelcollective/html": "^5.2"},

I have used composer update command and composer dump-autoload, But still my problem is not solved yet. Please anyone help me.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire