1. 在模板组件中使用授权策略绑定的模型 ```php use App\Models\Article; ``` 2. 在模板组件的方法中,定义一个空的变量 ```php class Headers extends Component { public $article; } ``` 3. 构造函数 ```php public function __construct() { $this->article = Article::class; } ``` 视图中使用 ```php @if(Auth::check() && Auth::user()->can('create', $article)) @endif ```