PHP code example of ge-tracker / spatie-generators
1. Go to this page and download the library: Download ge-tracker/spatie-generators 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/ */
ge-tracker / spatie-generators example snippets
namespace App\DTO;
use Spatie\DataTransferObject\DataTransferObjectCollection;
class TestDataCollection extends DataTransferObjectCollection
{
public function current(): TestData
{
return parent::current();
}
}
bash
php artisan make:action TestAction
bash
php artisan make:dto TestData
bash
php artisan make:dto TestDataCollection --collection