2024-05-25 14:06:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2024-05-26 14:15:55 +00:00
|
|
|
use App\helpers\batchUpdate;
|
2024-05-25 14:06:58 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2024-05-26 14:06:21 +00:00
|
|
|
/**
|
|
|
|
* @method static int update(array $values)
|
|
|
|
* @method static bool updateOrInsert(array $attributes, array $values = []) Insert or update a record matching the attributes, and fill it with values.
|
|
|
|
* @method static bool upsert(array $values, $uniqueBy, $update = null) insert new records or update the existing ones.
|
|
|
|
* @method static bool insert(array $values)
|
|
|
|
* @method static int insertOrIgnore(array $values)
|
|
|
|
* @method static int insertGetId(array $values, null|string $sequence)
|
|
|
|
* @method static int delete(mixed $id = null)
|
|
|
|
*/
|
2024-05-25 14:06:58 +00:00
|
|
|
class Base extends Model
|
|
|
|
{
|
2024-05-26 14:15:55 +00:00
|
|
|
use batchUpdate;
|
2024-05-25 14:06:58 +00:00
|
|
|
public $timestamps = true;
|
2024-05-26 14:06:21 +00:00
|
|
|
|
2024-05-25 14:06:58 +00:00
|
|
|
}
|