0
Daywison, I’m not sure I understand.
You would like to create the models from a command that automatically generates the models or the question is how to create the models with the names of the existing tables.
If it is the first option follow a package that you can use https://github.com/reliese/laravel . If it is the second option follow the code snippet:
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProductPeople extends Model
{
// Nome da tabela existente
protected $table = 'fornecedores';
}
I believe it’s the first, but I’ve put both options in case anyone needs it. ;)
I hope I’ve helped!