widdy/laravel-model

There is no license information available for the latest version (0.9.0) of this package.

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

0.9.0 2018-12-29 06:32 UTC

This package is auto-updated.

Last update: 2024-05-12 03:17:27 UTC


README

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