PHP code example of abdugoffor / laravel-crud-generator
1. Go to this page and download the library: Download abdugoffor/laravel-crud-generator 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/ */
abdugoffor / laravel-crud-generator example snippets
bash
public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->text('description');
$table->timestamps();
});
}
bash
php artisan migrate
bash
php artisan make:simple-crud Post
bash
php artisan make:simple-api-crud Post
bash
php artisan serve