PHP code example of nachofassini / laravel-database-structure
1. Go to this page and download the library: Download nachofassini/laravel-database-structure 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/ */
nachofassini / laravel-database-structure example snippets
// config/app.php
'providers' => [
...
NachoFassini\LaravelDatabaseStructure\ServiceProvider::class,
];
bash
php artisan schema:file
schema.php
php
$tables => [
'users' => [
'id',
'name',
'email',
'created_at',
...
],
'posts' => [
'user_id',
'title',
...
]
];