title: Error exception : Undefined variable that's been declared. Lumen
body: <p>So, for some reason i'm getting an Error exception and i can't find the bug. This is my controller (Posts::table = 'table') and (Posts::PK = 'id')</p>
  
  <pre><code>public function edit(int $postId): View
  {
  
          $post = app('db')
          -&gt;table(Posts::TABLE)
          -&gt;select(
            '*'
          )
          -&gt;where(Posts::PK, $postId)
          -&gt;first();
          $title = $this-&gt;_titleEdit;
  
      return view('posts.edit', compact(
          'post',
          'title'
      ));
  
  }
  </code></pre>
  
  <p>and this is my view.</p>
  
  <pre><code>&lt;form action="&lt;?=route('posts.update',['postId' =&gt; $postId]) ?&gt;" method="post"&gt;
  </code></pre>