PHP code example of salmanalmajali / jokes-widget
1. Go to this page and download the library: Download salmanalmajali/jokes-widget 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/ */
salmanalmajali / jokes-widget example snippets
bash
php artisan vendor:publish --tag="jokes-widget-translations"
bash
use SalmanAlmajali\JokesWidget\JokesWidget;
public function panel(Panel $panel): Panel
{
return $panel
->widgets([
JokesWidget::class,
]);
}