PHP code example of abdugoffor / admin-crud-generator-with-api

1. Go to this page and download the library: Download abdugoffor/admin-crud-generator-with-api 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 / admin-crud-generator-with-api 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:crud Post
bash
php artisan make:auth
bash
php artisan make:api-crud Post
bash
php artisan make:api-auth
bash
php artisan serve