PHP code example of ziixdk / admin

1. Go to this page and download the library: Download ziixdk/admin 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/ */

    

ziixdk / admin example snippets


// Grid (data table)
$grid = new Grid(User::class);
$grid->column('name')->sortable();
$grid->column('email');
$grid->filter(fn($f) => $f->like('name'));

// Form (create / edit)
$form = new Form(new User);
$form->text('name')->
bash
php artisan vendor:publish --provider="ZiiX\Admin\AdminServiceProvider"
bash
php artisan admin:install
bash
php artisan vendor:publish --tag=ziix-admin-assets --force
bash
php artisan admin:install           # First-time setup
php artisan admin:make ModelName    # Generate admin resource controller
php artisan admin:create-user       # Create an admin user
php artisan admin:reset-password    # Reset a user's password
php artisan admin:publish           # Re-publish assets and views