Problems with {!! Form::model()!! }

Asked

Viewed 48 times

1

I have a form where I add it to the create.blade.php page and Edit.blade.php page

more when I will specify the element does not appear the tag <form></form> More when I remove the @include('Dashboard.usuario.formulario') it appears in the source code of the page the form. Anyone has any idea why of this?

Behold:

@extends('dashboard')
 @section('content')
   {!! Form::model($user, ['route'  =>   ['user.update', $user->id] , 'method'    =>  'post']) !!}
     @include('dashboard.usuario.formulario')
   {!Form::close()!}
 @stop

As I said, when I take back @include it works again. showing in the source code my form tag <form> .

1 answer

0

Good morning, change it: {!!Form::close()!!}

If it still doesn’t work post include code.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.