Skip to content

Conversation

@big-dream
Copy link
Contributor

<?php
namespace app\controller\merchant;

#[\think\attribute\Middleware(CheckLogin::class, only: ['index'], except: ['a'])]
class Index
{
  public function index() {}
  public function a() {}
}

@yunwuxin
Copy link
Member

注解功能在这个库
https://github.com/top-think/think-annotation

@big-dream big-dream closed this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants