You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the interactive prompt and choosing all options as no (0), we get a malformed Model with an empty array "[]" in the place where traits would be added.
Steps to reproduce
php artisan twill:make:module Test
and pressing 0 for all prompts
Expected result
<?php
namespace App\Models;
use A17\Twill\Models\Model;
class Test extends Model
{
protected $fillable = [
'published',
'title',
'description',
];
}
Actual result
<?php
namespace App\Models;
use A17\Twill\Models\Model;
class Test extends Model
{
[]
protected $fillable = [
'published',
'title',
'description',
];
}
Description
When using the interactive prompt and choosing all options as no (0), we get a malformed Model with an empty array "[]" in the place where traits would be added.
Steps to reproduce
php artisan twill:make:module Test
and pressing 0 for all prompts
Expected result
Actual result
Versions
Twill 3.4.1
Laravel 11.41.3
PHP 8.2.27
MariaDB 11.6
The text was updated successfully, but these errors were encountered: