PHP code example of toneflix-code / laravel-resource-modifier
1. Go to this page and download the library: Download toneflix-code/laravel-resource-modifier 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/ */
toneflix-code / laravel-resource-modifier example snippets
ToneflixCode\ResourceModifier\ResourceModifierServiceProvider::class
return [
ToneflixCode\ResourceModifier\ResourceModifierServiceProvider::class,
];
namespace App\Console\Commands;
use Symfony\Component\Console\Attribute\AsCommand;
use ToneflixCode\ResourceModifier\Commands\ResourceMakeCommand as ToneflixCodeResourceMakeCommand;
#[AsCommand(name: 'make:resource')]
class ResourceMakeCommand extends ToneflixCodeResourceMakeCommand
{
protected $name = 'make:resource';
}
bash
php artisan mod:resource User --collection
php artisan mod:resource UserCollection