1. Go to this page and download the library: Download shreejan/dash-arrange 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/ */
shreejan / dash-arrange example snippets
use App\Filament\Pages\Dashboard; // Instead of Filament\Pages\Dashboard
namespace App\Filament\Pages;
use Shreejan\DashArrange\Traits\HasDashArrange;
use Filament\Pages\Dashboard as BaseDashboard;
class Dashboard extends BaseDashboard
{
use HasDashArrange;
protected string $view = 'dash-arrange::dashboard';
public function mount(): void
{
// Initialize DashArrange functionality
$this->mountHasDashArrange();
}
}
use App\Filament\Pages\Dashboard; // Instead of Filament\Pages\Dashboard