Looking to hire Laravel developers? Try LaraJobs

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)
Links
Downloads
10

Comments
comments powered by Disqus

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();