PHP code example of aluisio-pires / laravel-base-test
1. Go to this page and download the library: Download aluisio-pires/laravel-base-test 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/ */
aluisio-pires / laravel-base-test example snippets
use AluisioPires\LaravelBaseTest\BaseTestTransactions;
use App\Models\YourModel;
class YourModelTest extends BaseTestTransactions
{
public function test_index()
{
YourModel::factory()->create();
$this->simpleTest('get', route('your-model.index'));
}
}