Daywison, I do not know if I understand.
You would like to create the models from a command that manages the models automatically or the doubt is how to create the models with the names of the already existing tables.
If this is the first option, you'll see a package that you can use link
. If it is the second following option, it follows the code snippet:
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProductPeople extends Model
{
// Nome da tabela existente
protected $table = 'fornecedores';
}
I think it's the first one, but I've put both options in case anyone needs it. ;)
I hope I have helped!