PHP code example of moharrum / laravel-adminer
1. Go to this page and download the library: Download moharrum/laravel-adminer 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/ */
moharrum / laravel-adminer example snippets
'providers' => [
Moharrum\LaravelAdminer\Providers\LaravelAdminerServiceProvider::class,
]
php artisan vendor:publish --provider="Moharrum\LaravelAdminer\Providers\LaravelAdminerServiceProvider"
'application_defaults' => [
'name' => [
'use_env_default' => false,
'custom' => 'Laravel Adminer',
],
],
'manager' => [
'enabled' => true,
'route' => [
'name' => 'adminer.manager.index',
'path' => 'adminer/manager',
'middleware' => [
'web',
],
],
'style' => 'vendor/laravel-adminer/styles/pepa-linha/adminer.css',
],
'editor' => [
'enabled' => false,
'parameters' => [
'connection' => env('DB_CONNECTION', null),
'database' => env('DB_DATABASE', null),
'host' => env('DB_HOST', null),
'port' => env('DB_PORT', null),
],
'route' => [
'name' => 'adminer.editor.index',
'path' => 'adminer/editor',
'middleware' => [
'web',
],
],
'style' => 'vendor/laravel-adminer/styles/pepa-linha/adminer.css',
],