title: Argument 1 passed in laravel
body: <p>I have an error in my code in Laravel. </p>
  
  <p>Its shows this</p>
  
  <blockquote>
    <p>Argument 1 passed to Order\Order::__construct() must be an instance of System\RewardPoint, none given, called in C:\xampp\htdocs\stardibs-version2\stardibs-v2\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php on line 647 and defined</p>
  </blockquote>
  
  <p><strong>order.php</strong>
  
  
  <pre><code>use BaseModel, DB; 
  use Eloquent, User\User, Auth, Cart, Order\Order; 
  use System\RewardPoint as RewardPoint; 
  
  class Order extends BaseModel {
  
      public function __construct(RewardPoint $rewardPoint)
      {
          $this-&gt;rewardPoint = $rewardPoint;
  
      }
  }
  </code></pre>
  
  <p>What is the solution for this?</p>