tomatophp / filament-plugins

Manage your modules as a plugin system with plugin generator
https://tomatophp.com/en/open-source/filament-plugins
MIT License
32 stars 9 forks source link

Unable to create model, resource, page etc.. #17

Closed FMpoli closed 4 months ago

FMpoli commented 4 months ago

if i fix this bug with my solution https://github.com/tomatophp/filament-plugins/issues/15 i'm able to migrate (create the migration file by clicking on the database icon) i suggest to change the tooltip from 'migrate' to 'create migration' to avoid misunderstanding with the 'Migrate' in the dropdown under 'generate'

after this, i launch the Migrate under Generate and it works, the table is created on the db

then i create the model and it works

<?php

namespace Modules\Warehouse\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * @property string $id
* @property string $name
* @property string $slug
* @property string $url
 */
class WarehouseBrand extends Model
{
    /**
     * @var array
     */
    protected $fillable = [
        'id',
        'name',
        'slug',
        'url'
    ];
}

but, when i try the other options, i get this message

The model could not be found generate it first.

3x1io commented 4 months ago

i think it's a namespace problem i will check it