title: "htmlentities() expects parameter 1 to be string, array given" in PHP
body: <p>My problem seems to be with Laravel helpers. Everything was working fine until I change some files to other folders, of course I changed the routes and on routes and controllers but now I'm getting this message:</p>
  
  <blockquote>
    <p>ErrorException in HtmlBuilder.php line 65:
    htmlentities() expects parameter 1 to be string, array given (View: /Library/WebServer/Documents/gamstec/resources/views/posts/create.blade.php)</p>
  </blockquote>
  
  <p>This is my create file:</p>
  
  <pre><code>&lt;div class="content"&gt;
      &lt;div class="container-fluid"&gt;
          &lt;div class="row well bs-component"&gt;
              &lt;div class="col-md-8 col-md-offset"&gt;
              &lt;div class="input-group"&gt;
  
                  &lt;h3 class="text-center"&gt;Crear Nueva Publicación&lt;/h3&gt;
                  &lt;hr&gt;
  
                  {!! Form::open(array('route' =&gt; 'posts.store', 'data-parsley-validate' =&gt; '')) !!}
  
                      {{ Form::label('title', ' Título:', array('class' =&gt; 'fa fa-pencil')) }}
  
                      {{ Form::text('title', null, array('class' =&gt; 'form-control', 'required' =&gt; '', 'maxlength' =&gt; '255')) }}
  
                      {{ Form::label('body', ' Contenido:', array('class' =&gt; 'fa fa-pencil-square-o')) }}
  
                      {{ Form::textarea('body', null, array('class' =&gt; 'form-control', 'required' =&gt; '')) }}
  
                      {{ Form::submit('Publicar', array('class' =&gt; 'btn btn-info')) }}
  
  
                  &lt;/div&gt;
              &lt;/div&gt; &lt;!-- col-md-8 end --&gt;
  
  
              &lt;div class="col-md-4"&gt;
              &lt;div class="input-group"&gt;
                  &lt;h3 class="text-center"&gt;Categoría e imágen&lt;/h3&gt;
                  &lt;hr&gt;
  
  
                       &lt;br&gt; &lt;hr&gt;
  
                      {{ Form::label('badge', ' Etiqueta:', array('class' =&gt; 'fa fa-tags')) }}
  
                      {{ Form::text('badge', array('class' =&gt; 'form-control', 'maxlength' =&gt; '20')) }}
                      &lt;br&gt; &lt;hr&gt;
  
                       {{ Form::label('postimg', ' Seleccionar Imagen', array('class' =&gt; 'fa fa-picture-o')) }}
                      &lt;br&gt; &lt;br&gt;
                      {{ Form::file('postimg', array('require' =&gt; '', 'maxlength' =&gt; '255')) }}
  
                  {!! Form::close() !!}
  
              &lt;/div&gt; &lt;!-- item-group end --&gt;
              &lt;/div&gt; &lt;!-- col-md-4 end --&gt;
  
  
          &lt;/div&gt; &lt;!-- end of row --&gt;
      &lt;/div&gt; &lt;!-- end of container --&gt;
  &lt;/div&gt; &lt;!-- end of content --&gt;
  </code></pre>
  
  <p>This is my controller file:</p>
  
  <pre><code>&lt;?php
  
  
  public function index()
  {
      return view('admin');
  }
  
  /**
   * Show the form for creating a new resource.
   *
   * @return \Illuminate\Http\Response
   */
  public function create()
  {
      return view('posts.create');
  }
  
  /**
   * Store a newly created resource in storage.
   *
   * @param  \Illuminate\Http\Request  $request
   * @return \Illuminate\Http\Response
   */
  public function store(Request $request)
  {
      // validate the data
      $this-&gt;validate($request, array(
          'title' =&gt; 'required|max:255',
          'body' =&gt; 'required',
          ));
  
      // store in database
      $post = new Post;
  
      $post-&gt;title = $request-&gt;title;
      $post-&gt;body = $request-&gt;body;
      $post-&gt;badge = $request-&gt;badge;
      $post-&gt;postimg = $request-&gt;postimg;
  
      $post-&gt;save();
  
      Session::flash('success', 'La publicación se ha creado correctamente');
  
      // redirect to another page
      return redirect()-&gt;route('show', $post-&gt;id);
  }
  
  /**
   * Display the specified resource.
   *
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function show($id)
  {
      $post = Post::find($id);
      return view('show')-&gt;withPost($post);
  }
  
  /**
   * Show the form for editing the specified resource.
   *
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function edit($id)
  {
      //
  }
  
  /**
   * Update the specified resource in storage.
   *
   * @param  \Illuminate\Http\Request  $request
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function update(Request $request, $id)
  {
      //
  }
  
  /**
   * Remove the specified resource from storage.
   *
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function destroy($id)
  {
      //
  }
  </code></pre>
  
  <p>I'll be grateful for your help.</p>