PHP code example of phpinnacle / recens
1. Go to this page and download the library: Download phpinnacle/recens 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/ */
phpinnacle / recens example snippets
use PHPinnacle\Recens\RecensPlugin;
$panel->plugin(
RecensPlugin::make()
->limit(8)
->icon('phosphor-clock-counter-clockwise')
->color('gray'),
);
use PHPinnacle\Recens\Models\Recent;
$entry = Recent::forCurrentContext()->findOrFail($id);
$entry->pin();
$entry->unpin();
$entry->delete();
Recent::clearHistory();
bash
composer vendor:publish --tag="phpinnacle-recens-migrations"
php artisan migrate