|
- <?php
-
- namespace App\Models;
-
- use Illuminate\Database\Eloquent\Concerns\HasUuids;
- use Illuminate\Database\Eloquent\SoftDeletes;
-
- abstract class AppModel extends BaseModel
- {
- use SoftDeletes, HasUuids;
-
- public function getHistory(): ?HistoryModel
- {
- $historyName = static::class . 'History';
- return new $historyName;
- }
-
- public function getChangeLogMessage($before, $after): ?string
- {
- return null;
- }
- }
|