1. Go to this page and download the library: Download maras0830/laravel-srt 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/ */
maras0830 / laravel-srt example snippets
public function __construct()
{
// set your eager query // false: laravel-srt log warning when you forgot eager query( ->with(['notificationable']) )
// true: laravel-srt throw TransformerException when you forgot eager query( ->with(['notificationable']) )
$this->setStrictMode(false);
}
$ php artisan make:service UserService
$ php artisan make:repository UserRepository
$ php artisan make:transformer UserTransformer
$ php artisan make:srt User
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.