'Pages', 'route' => 'manager.pages.index', 'permission' => 'pages.edit'], ]; } /** Where the media library looks for the use of a file: the texts of the pages. */ public function views(): array { return ['pages.index' => 'Opened the pages']; } public function boot(): void { app(MediaUsage::class)->register(fn () => Page::query()->get(['body'])->flatMap(fn (Page $row) => array_values($row->only(['body'])))); } }