PHP code example of shaqi-labs / laravel-reversekit

1. Go to this page and download the library: Download shaqi-labs/laravel-reversekit 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/ */

    

shaqi-labs / laravel-reversekit example snippets


return [
    'generators' => [
        'model' => true,
        'migration' => true,
        'controller' => true,
        'resource' => true,
        'request' => true,
        'policy' => true,
        'factory' => true,
        'seeder' => true,
        'test' => true,
    ],
    'model' => ['use_soft_deletes' => false, 'use_uuid' => false],
    'controller' => ['use_form_requests' => true, 'use_policies' => true],
];
bash
# Config file
php artisan vendor:publish --tag=reversekit-config

# Stubs for customization
php artisan vendor:publish --tag=reversekit-stubs
bash
php artisan reverse:interactive

app/Models/User.php
app/Models/Post.php
app/Http/Controllers/UserController.php
app/Http/Controllers/PostController.php
app/Http/Resources/UserResource.php
app/Http/Resources/PostResource.php
app/Policies/UserPolicy.php
app/Policies/PostPolicy.php
database/migrations/xxxx_create_users_table.php
database/migrations/xxxx_create_posts_table.php
tests/Feature/UserTest.php
tests/Feature/PostTest.php
routes/api.php