title: Laravel: Observer Error
body: <p>I have this error when I create a partner:</p>
  <blockquote>
  <p>(1/1) ErrorException</p>
  <p>Argument 1 passed to App\Observers\PartnerObserver::created() must be an &gt;instance of App\Observers\Partner, instance of App\Model\Partner given</p>
  </blockquote>
  <p>My <code>AppServiceProvider</code>:</p>
  <pre><code>namespace App\Providers;
  
  //Models
  use App\Model\Partner;
  
  //Observers
  use App\Observers\PartnerObserver;
  
  use Illuminate\Support\ServiceProvider;
  
  class AppServiceProvider extends ServiceProvider
  {
      /**
       * Bootstrap any application services.
       *
       * @return void
       */
      public function boot()
      {
          Partner::observe(PartnerObserver::class);
      }
  
      /**
       * Register any application services.
       *
       * @return void
       */
      public function register()
      {
          //
      }
  }
  </code></pre>
  <p>My <code>Observer</code>:</p>
  <pre><code>&lt;?php
  
  namespace App\Observers;
  
  use DB;
  use Illuminate\Support\Facades\Auth;
  use App\Model\Parner;
  use Carbon\Carbon;
  
  class PartnerObserver {
  
      /**
       * Listen to the Partner created event.
       *
       * @param  User  $user
       * @return void
       */
      public function created(Partner $partner) {
  
          $id = Auth::user()-&gt;id;
          if ($id &gt; 0){
              $id = $id;
          } else {
              $id = 1;
          }
          DB::table('partners')
              -&gt;where('id', $partner-&gt;id)
              -&gt;update(['creator' =&gt; $id]);
  
      }
  
      /**
       * Listen to the Partner updating event.
       *
       * @param  User  $user
       * @return void
       */
      public function updating(Partner $partner) {
  
          $id = Auth::user()-&gt;id;
          if ($id &gt; 0){
              $id = $id;
          } else {
              $id = 1;
          }
          $time = new Carbon();
          DB::table('partners')
              -&gt;where('id', $partner-&gt;id)
              -&gt;update(['updater' =&gt; $id]);
  
      }
  
      /**
       * Listen to the Partner deleting event.
       *
       * @param  User  $user
       * @return void
       */
      public function deleting(Partner $partner) {
  
          $id = Auth::user()-&gt;id;
          if ($id &gt; 0){
              $id = $id;
          } else {
              $id = 1;
          }
          $time = new Carbon();
          DB::table('partners')
              -&gt;where('id', $partner-&gt;id)
              -&gt;update([
                          'deleter' =&gt; $id,
                          'deleted_at' =&gt; $time,
                      ]);
  
      }
  }
  </code></pre>
  <p>What I did wrong?</p>