How can I remove an existing lens from the dashboard?

You can remove an existing lens by using the removeLens() method and passing the key of the lens you want to remove:

\Aero\Admin\Http\Responses\AdminDashboardPage::extend(function (\Aero\Admin\Http\Responses\AdminDashboardPage $page, \Closure $next) {
    $page->removeLens(
        \Aero\Admin\Lenses\OrdersLens::key()
    );
});

 


Revision #1
Created 2026-09-22 11:05:47 UTC by Ethan Payne
Updated 2026-09-22 11:07:31 UTC by Ethan Payne