PHP code example of 23m / dev-panel

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

    

23m / dev-panel example snippets


'path' => 'dev',

'auth_middleware' => [
    \Filament\Http\Middleware\Authenticate::class,
],

'models' => [
    app_path('Models') => 'App\\Models',
],

'base_model_class' => Illuminate\Database\Eloquent\Model::class

'field_strategies' => []

'column_strategies' => []

use TTM\DevPanel\Testing\ResourceCrudTester;

it('can do CRUD for :dataset in the dev panel', function (string $model) {
    $this->actingAs(User::factory()->create());

    ResourceCrudTester::for($model)->assertCanCreate();
    // also: assertCanList(), assertCanEdit(), assertCanDelete()
})->with($models);
bash
php artisan vendor:publish --provider="vendor:publish --provider="TTM\DevPanel\Providers\DevPanelProvider""
bash
php artisan dev-panel:generate