How do I remove a dashboard lens from the dashboard?

You are able to extend Aero\Admin\Http\Responses\AdminDashboardPage and use the removeLens method. You will need to pass in the key of the lens that you want to remove.


namespace Acme\MyModule;

use Aero\Admin\Http\Responses\AdminDashboardPage;
use Aero\Admin\Lenses\RevenueLens;
use Aero\Common\Providers\ModuleServiceProvider;

class ServiceProvider extends ModuleServiceProvider
   public function setup()
       AdminDashboardPage::extend(function (AdminDashboardPage $page) {

Articles in this section

Was this article helpful?
0 out of 0 found this helpful