BaseModel.php 233 B

1234567891011121314151617
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class BaseModel extends Model
  5. {
  6. public $timestamps = false;
  7. public static function findById($id)
  8. {
  9. return self::query()->find($id);
  10. }
  11. }