| Install | |
|---|---|
composer require rhaima/voltpanel |
|
| Latest Version: | v1.0.0 |
| PHP: | ^8.2 |
A powerful admin panel builder for Laravel using the VILT stack (Vue, Inertia.js, Laravel, Tailwind CSS). Inspired by Filament PHP, VoltPanel brings a similar developer experience to the VILT ecosystem.
composer require rhaima/voltpanel
php artisan voltpanel:install
This will publish the config file, migrations, Vue components, and CSS assets (auto-detects Tailwind v3 or v4).
php artisan migrate
npm install
npm run dev
php artisan voltpanel:panel Admin
In your app/Providers/AppServiceProvider.php:
use App\Panels\AdminPanel;
use Rhaima\VoltPanel\Facades\VoltPanel;
public function boot(): void
{
VoltPanel::register(new AdminPanel());
}
use Rhaima\VoltPanel\Authorization\Traits\HasRoles;
class User extends Authenticatable
{
use HasRoles;
}
Visit http://yourapp.com/admin to access the panel.
Generate a resource:
php artisan voltpanel:resource Post
Define your resource in a single class:
use Rhaima\VoltPanel\Resources\Resource;
use Rhaima\VoltPanel\Forms\Form;
use Rhaima\VoltPanel\Tables\Table;
use Rhaima\VoltPanel\Forms\Components\TextInput;
use Rhaima\VoltPanel\Forms\Components\RichEditor;
use Rhaima\VoltPanel\Forms\Components\Select;
use Rhaima\VoltPanel\Tables\Columns\TextColumn;
use Rhaima\VoltPanel\Tables\Columns\BadgeColumn;
use Rhaima\VoltPanel\Tables\Columns\DateColumn;
class PostResource extends Resource
{
protected static ?string $model = Post::class;
public static function form(Form $form): Form
{
return $form->schema([
TextInput::make('title')->required(),
RichEditor::make('content'),
Select::make('status')->options([
'draft' => 'Draft',
'published' => 'Published',
]),
]);
}
public static function table(Table $table): Table
{
return $table->columns([
TextColumn::make('title')->sortable()->searchable(),
BadgeColumn::make('status'),
DateColumn::make('created_at'),
]);
}
}
Publish the config file:
php artisan vendor:publish --tag=voltpanel-config
See config/voltpanel.php for all available options including path, middleware, branding, theme, authorization, activity log, multi-tenancy, and more.
Full documentation is available at https://rhaima96.github.io/voltpanel-docs.
| Layer | Technology | Purpose |
|---|---|---|
| Backend | Laravel 11/12 | API, routing, ORM, authentication |
| Frontend | Vue 3 | Reactive UI components |
| Bridge | Inertia.js | SPA without building an API |
| Styling | Tailwind CSS v3/v4 | Utility-first CSS |
| Charts | Chart.js | Dashboard visualizations |
| Rich Editor | Tiptap | WYSIWYG content editing |
| Export | OpenSpout, DomPDF | CSV, Excel, PDF generation |
composer test
Please see the releases page for more information on what has changed.
Contributions are welcome! Please see CONTRIBUTING for details.
If you discover a security vulnerability, please send an email to mohamed.rhaima96@gmail.com. All security vulnerabilities will be promptly addressed.
The MIT License (MIT). Please see License File for more information.