1. Go to this page and download the library: Download monaye/simple-link-button library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
monaye / simple-link-button example snippets
use Monaye\SimpleLinkButton\SimpleLinkButton;
public function fields(Request $request)
{
return [
SimpleLinkButton::make('Google', 'https://google.com'),
];
}
SimpleLinkButton::make('Google', 'https://google.com')->classes('my-own-class second-class'),
// to add additional class you will need to combine with pre config classes
// get classes from config file out slide of
$defaultClasses = Arr::get(config('simple-link-button'), "buttons.fill.primary")
// add additional class
SimpleLinkButton::make('Google', 'https://google.com')->classes("myClass ${defaultClass}"),