PHP code example of ken / spider-admin

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

    

ken / spider-admin example snippets



'providers' => [
    Ken\SpiderAdmin\SpiderAdminServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class, // laravelcollective/html class
    Intervention\Image\ImageServiceProvider::class, // intervention/image class
]

'aliases' => [
    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
    'Image' => Intervention\Image\Facades\Image::class,
]

'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Models\User::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

protected $routeMiddleware = [
        'spider' => \Ken\SpiderAdmin\App\Http\Middleware\SpiderToRedirect::class,
    ];
 
@extends('spider::layouts.apps')

@section('content')
    // yours content in here
@endsection

@section('css')
    // yours css in here 
@endsection

@section('script')
    // yours script in here 
@endsection

 

Route::group(['prefix' => 'spider'] , function() {
   // yours route in here
});
 
 

Route::group(['prefix' => config('spider.config.route_prefix')] , function() {
   // yours route in here
});
 


return [
    'title_name'            => 'Spider-AdminLTE',
    'title_name_login'      => 'Spider-AdminLTE',
    'route_prefix'          => 'spider',
    'application_name_mini' => '<b><i>-d</i></b>',
    'application_name'      => '<b>Spider</b><i>-AdminLTE</i>',
    'developer_web'         => 'https://www.diaddemi.web.id',
    'developer_name'        => 'Wahyu Dhira Ashandy'
];

php artisan vendor:publish

php artisan migrate

composer dump-autoload

php artisan db:seed --class=SpiderSeeder