laravel-model maintained by widdy
Description
a simple way to create a new Eloquent model with given table name.
Author
Last update
2018/12/29 07:32
(dev-master)
Downloads
10
Tags
laravel-model
a simple way to create a new Eloquent model with given table name.
Requirements
- laravel >=5.5
Installation
$ composer require widdy/laravel-model
Examples
model('users')::find(1);
model('users')->fill(['email' => 'foo@bar.com'])->save();
model('users', ['email' => 'foo@bar.com'])->save();