Skip to content

a simple way to create a new Eloquent model with given table name.

License

Notifications You must be signed in to change notification settings

widdy/laravel-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a simple way to create a new Eloquent model with given table name.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages