PHP code example of kristories / dashkit
1. Go to this page and download the library: Download kristories/dashkit 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/ */
kristories / dashkit example snippets
namespace App\Http\Livewire;
use Livewire\Component;
class MyTile extends Component
{
/** @var string */
public $position;
public function mount(string $position)
{
$this->position = $position;
}
public function render()
{
return view('tiles.my_tile');
}
}
bash
php artisan dashkit:install
bash
php artisan dashkit:make-tile MyTile