基於資料庫表結構建立帶 getter 和 setter 方法的 Model

tinson發表於2019-12-30

Link

https://github.com/hetiansu5/laravel-make-...

Introduction

Laravel Plugin Library for Creating a new Eloquent model class filled with getter and setter.

Quick Start

1.Import package via composer

composer require tinson/laravel-make-model:^1.0.0

2.Import provider at bootstrap/app.php in your project

$app->register(MakeModel.roviders.akeModelProvider::class);

3.How to use

# see the help list  
php artisan make:e-model -h

# a simple demo 
# create new model named `User`, its table name is `users`.  
php artisan make:e-model users -m User
本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章