PHP code example of fahedaljghine / laravel-model-test
1. Go to this page and download the library: Download fahedaljghine/laravel-model-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/ */
fahedaljghine / laravel-model-test example snippets
return [
/*
* the models you need to generate tests to
*/
'models' => [
//'Model1' , 'Model2'
],
/*
* if your models routes are protected with auth guard middleware
* and want to test that against your model set this to true
*/
'auth_user' => true,
/*
* if you are using spatie/laravel-permission in your project
* and want to test that against your model set this to true
*/
'laravel-permissions' => false
];
/*
* the models you need to generate tests to
*/
'models' => [
'Post' ,
'Comment',
],