The LauncherConstructor
is one of the Constructor Classes
of Hiker. It's used to create the launcher part of the Chrome
.
Here's an example of how it's used:
<?php namespace App\Hiker\Chrome; use Hiker\Components\Launcher\LauncherConstructor; class Launcher extends LauncherConstructor { protected function sections(): array { Section::make('Cats', [ Link::make('ฅ^•ﻌ•^ฅ') ]), Section::make('Dogs', [ Link::make('૮・ᴥ・ა') ]), } }
Required methods
sections(): array
Description:
Return the launcher action sections with links
Example:
protected function sections(): array { Section::make('Cats', [ Link::make('ฅ^•ﻌ•^ฅ') ]), Section::make('Dogs', [ Link::make('૮・ᴥ・ა') ]), }