title: How to use spatie permission middleware in Laravel?
body: <p>I am using Laravel 8 and Spatie Role and Permission. Permission for each action working fine. But if i assign <strong>delete action</strong> permission to sub admin but I hit  <strong>create action</strong> directly from URL middlware can not stop action as user have not create permission.</p>
  <pre><code> public function __construct(CustomerInterface $customerInterface)
  {
      $this-&gt;customerInterface = $customerInterface;
      $this-&gt;middleware(['permission:create_customer|delete_customer|edit_customer|chnage_customer_status']);
  }
  </code></pre>
  <p>I am using above middleware in constructor. How can i Solve this issue.</p>