PHP code example of develme / schema-wireframe
1. Go to this page and download the library: Download develme/schema-wireframe 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/ */
develme / schema-wireframe example snippets
//...
'connections' => [
//...
'schema' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => 'information_schema',
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
//...
// ...
/*
* Third Party Service Providers...
*/
'DevelMe\SchemaServiceProvider',
// ...
bash
php artisan make:schema-controller <controller class name> [--table=<table name>] [--model=<model class name>]
bash
php artisan make:schema-controller Admin\\User --table="users" --model="App\\User"
bash
php artisan make:schema-model <model class name> [--table=<table name>]
bash
php artisan make:schema-model User --table="users"
bash
php artisan make:schema-view <model class name> [--table=<table name>] [--theme=<bootstrap|foundation>] [--path=<directory>]
bash
php artisan make:schema-app User Admin\\User --table="users" --theme="bootstrap"