make:model
php mitosis make:model User
Writes app/Models/User.php:
<?php
declare(strict_types=1);
namespace App\Models;
final class User
{
}
✓ Created model: /path/to/app/Models/User.php
Refuses to overwrite an existing file. Exit code 1 with no argument or an existing file; 0 on success.
Next steps
- make:migration — the table this model will typically query.
- DB — the API a model's own methods call directly (see this repo's own
ChangelogEntryModelfor a real example).