Added more permissions to the seeder..

This commit is contained in:
2020-06-30 09:21:21 +02:00
parent 620902d7d8
commit 14b745dc2b
7 changed files with 77 additions and 0 deletions
@@ -8,6 +8,17 @@ use App\Contact;
class ContactController extends Controller
{
public function __construct()
{
$this->middleware([ "auth" ]);
$this->middleware([ "check.auth:contact.list" ])->only("index");
$this->middleware([ "check.auth:contact.show" ])->only("show");
$this->middleware([ "check.auth:contact.create" ])->only("create", "store");
$this->middleware([ "check.auth:contact.edit" ])->only("edit", "update");
$this->middleware([ "check.auth:contact.delete" ])->only("delete");
}
/**
* Display a listing of the resource.
*