Laravel Policy bug
问题 I have used Laravel Policies successfully in the past but am having issues with one currently. In an ArticleController I have the following method: /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $this->authorize('create', Article::class); $categories = $this->categories; return view('editable.news.create', compact('categories')); } My ArticlePolicy looks like this: <?php namespace App\Policies; use Illuminate\Auth\Access