title: unresolvable-dependency-resolving-at-component-class
body: <p>I have a component that loads inputs
  Editable.php</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  namespace App\View\Components;
  use Illuminate\View\Component;
  class Editable extends Component
  {
      public $type;
      public $name;
      public $value;
      public $pk;
      public $model;
      public $mode;
      public $url;
      public $numberformat;
      public $decimal;
      public $source;
      public $title;
      /**
       * Create a new component instance.
       *
       * @return void
       */
      public function __construct($type, $name, $value, $pk, $model, $mode = &quot;inline&quot;, $url = '', $numberformat = 0, $decimal = 0, $source = '', $title = '')
      {
          $this-&gt;type = $type;
          $this-&gt;name = $name;
          $this-&gt;value = $value;
          $this-&gt;pk = $pk;
          $this-&gt;model = $model;
          $this-&gt;mode = $mode;
          $this-&gt;url = ($url) ? $url : route(&quot;admin.common.changeEntity&quot;);
          $this-&gt;numberformat = (int) $numberformat;
          $this-&gt;decimal = (int) $decimal;
          $this-&gt;source = $source;
          $this-&gt;title = $title;
      }
      /**
       * Get the view / contents that represent the component.
       *
       * @return \Illuminate\Contracts\View\View|string
       */
      public function render()
      {
          return view('components.editable');
      }
  }
  </code></pre>
  <p>And I use the component like this:</p>
  <pre class="lang-html prettyprint-override"><code>   @forelse($currencies as $item)
       &lt;x-Editable type=&quot;text&quot; name=&quot;buy&quot; :value=&quot;$item-&gt;buy&quot; :pk=&quot;$item-&gt;id&quot; model=&quot;Currency&quot; numberformat=&quot;1&quot; title=&quot;edit currency&quot; /&gt;
     @empty
    @endforelse
  </code></pre>
  <p>at my localhost everything is fine but at the server, I get this error</p>
  <pre class="lang-php prettyprint-override"><code>Unresolvable dependency resolving [Parameter #5 [ &lt;optional&gt; $mode ]] in class App\View\Components\Editable (View: /home/***/resources/views/admin/default/currencies/index.blade.php)
  </code></pre>
  <p>PHP version at localhost is  7.4.16 and PHP version at the server is  7.4.16 too</p>