title: Asgardcms - Undefined variable: media when creating a new blog post
body: <p>I created a cms with asgardcms framework already but now I would like to deploy my project using docker. It seems the website work normally but when I want to insert a new record through the cms, it shows an error message "compact(): Undefined variable: media (View: ....)".</p>
  
  <p>It seems the cause of the problem is because of a line of code <code>@mediaSingle('cover_img')</code>. When I removed this line of code, the error message did not pop up.</p>
  
  <p>I doubted if the version of the packages installed are different so I have tried building my project without using docker and run <code>php composer update</code> to test it. But it worked well.
  How to fix this problem? Thank you!</p>
  
  <p>My create-fields.blade.php</p>
  
  <pre><code>&lt;div class="box-body"&gt;
      &lt;select class="selectpicker" style="width:100%;" name="title_color"&gt;
          &lt;option value="0c15c0" data-icon="color1" &gt;#0c15c0&lt;/option&gt;     
      &lt;/select&gt;
      &lt;br&gt;
      @mediaSingle('cover_img')
      &lt;p&gt;Cover Image Size (320px x 215px)&lt;/p&gt;
      {!! Form::normalTextarea('title', 'Title', $errors) !!}
      {!! Form::normalTextarea('content', 'Content', $errors) !!}
  
      &lt;div class="form-group "&gt;
          &lt;label&gt;Date&lt;/label&gt;
          &lt;input type="date" name="date" required="required"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>