PHP code example of makeabledk / laravel-factory-enhanced
1. Go to this page and download the library: Download makeabledk/laravel-factory-enhanced 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/ */
makeabledk / laravel-factory-enhanced example snippets
namespace App\Models;
use Makeable\LaravelFactory\HasFactory;
class User
{
use HasFactory;
// ...
}
namespace Database\Factories;
use Makeable\LaravelFactory\Factory;
class UserFactory extends Factory
{
public function definition()
{
return [
// ...
];
}
}