PHP code example of coding-partners / auto-controller
1. Go to this page and download the library: Download coding-partners/auto-controller 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/ */
coding-partners / auto-controller example snippets
public function up(): void
{
Schema::create('files', function (Blueprint $table) {
$table->id();
$table->string('image_img');
$table->string('video_vid');
$table->string('audio_aud');
$table->string('file_docs');
$table->timestamps();
});
}
bash
php artisan crud:generate ModelName