| 1 | <?php namespace App\Models; |
||
| 5 | class CashSnapshots extends Model { |
||
| 6 | |||
| 7 | protected $table = 'cash_snapshots'; |
||
| 8 | public $primaryKey = 'cs_id'; |
||
| 9 | public $timestamps = false; |
||
| 10 | |||
| 11 | public static $validationRules = [ 'title' => 'required|name', |
||
| 12 | 'description' => '', |
||
| 13 | 'amount' => 'required|numeric|between:0,9999' ]; |
||
| 14 | |||
| 15 | public function details() |
||
| 19 | |||
| 20 | public function scopeWithUsers($query) |
||
| 24 | |||
| 25 | } |