Is there anyway to write this authorization better?

后端 未结 0 626
野性不改
野性不改 2020-11-30 15:20
public function __construct()
{
    $this->middleware(\'auth:api\')->only([\'index\', \'show\']);
    $this->middleware([\'auth:api\', \'role:seeker|admin\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题