PHP code example of nurzzzone / admin-panel

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

    

nurzzzone / admin-panel example snippets


class PostController extends \Nurzzzone\AdminPanel\Controllers\TableController
{
    public function fromTable() 
    {
        $table = new \Nurzzzone\AdminPanel\Support\Table(Post::query());
        $table->enablePagination();
        $table->addColumn(new \Nurzzzone\AdminPanel\Support\Table\Text('ID', 'id'));
        $table->addColumn(new \Nurzzzone\AdminPanel\Support\Table\Text('Title', 'title'));
        return $table;
    }
}

@extends('admin-panel::layouts.base')

@section('title', 'Blog Posts') // page title

@section('css')
    // styles
@endsection()

@section('content')
    // html content
@endsection()

@section('scripts')
    // js
@endsection()
sh
php artisan vendor:publish admin-panel-assets