PHP code example of thetemplateblog / trash-bin
1. Go to this page and download the library: Download thetemplateblog/trash-bin 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/ */
thetemplateblog / trash-bin example snippets
php artisan vendor:publish --tag=trash-bin-config
php artisan cache:clear
php please cache:clear
// config/trash-bin.php
return [
'trash_directory' => storage_path('app/trash'), // Default directory for trashed items
'show_in_nav' => true, // Whether to show the Trash Bin in CP navigation
];