title: Error Class 'App\Models\GateWay' not found
body: <p>Would you be so kind to explain to me why you can't find the library</p>
  <p>Error
  Class 'App\Models\GateWay' not found</p>
  <p>in /var/www/html/demo//var/www/html/demo/core/resources/views/templates/basic/sections/payment.blade.php (line 2)</p>
  <pre><code>&lt;?php
  $payments = App\Models\GateWay::where('status', 1)-&gt;latest()-&gt;get();
  $paymentData = getContent('payment.content', true);
  ?&gt;
  </code></pre>
  <p>the location is correct
  /var/www/html/demo/core/app/Models/Gateway.php</p>
  <pre><code>&lt;?php
  
  namespace App\Models;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Gateway extends Model
  {
      protected $guarded = ['id'];
  
      protected $casts = ['status' =&gt; 'boolean', 'code' =&gt; 'string', 'extra' =&gt; 'object','input_form'=&gt; 'object'];
  
      public function currencies()
      {
          return $this-&gt;hasMany(GatewayCurrency::class, 'method_code', 'code');
      }
  
      public function single_currency()
      {
          return $this-&gt;hasOne(GatewayCurrency::class, 'method_code', 'code')-&gt;latest();
      }
  
      public function scopeCrypto()
      {
          return $this-&gt;crypto == 1 ? 'crypto' : 'fiat';
      }
  
      public function scopeAutomatic()
      {
          return $this-&gt;where('code', '&lt;', 1000);
      }
  
      public function scopeManual()
      {
          return $this-&gt;where('code', '&gt;=', 1000);
      }
  }
  
  </code></pre>