The DashboardConstructor
is one of the Constructor Classes
of Hiker. It's used to create the dashboard part of the Chrome
.
Here's an example of how it's used:
<?php namespace App\Hiker\Chrome; use Hiker\Components\Dashboard\DashboardConstructor; class Dashboard extends DashboardConstructor { protected function components():array{ DisplayTextfield::make('Cats and Dogs are cool 😎'); } }
Required methods
components(): array
Description:
Return the dashboard components.
Example:
protected function components():array{ DisplayTextfield::make('Cats and Dogs are cool 😎'); }