public function run() { Entity::create(['name' => 'role']); Entity::create(['name' => 'entity']); Entity::create(['name' => 'permission']); Entity::create(['name' => 'assignment']); }
/** * @return mixed */ public function store(CreateEntityRequest $request) { Entity::create($request->only('name')); $this->resetSuperAdminPermissions(); return redirect()->route('genealabs.laravel-governor.entities.index'); }