File manager - Edit - /home/u816558632/domains/postills.com/public_html/public/DocumentAndNote.php.tar
Back
home/u816558632/domains/postills.com/public_html/app/DocumentAndNote.php 0000644 00000001640 15002203412 0021564 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\LogsActivity; use Spatie\Activitylog\LogOptions; class DocumentAndNote extends Model { use LogsActivity; /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = ['id']; protected static $logUnguarded = true; protected static $logOnlyDirty = true; /** * Get all of the owning notable models. */ public function notable() { return $this->morphTo(); } public function media() { return $this->morphMany(\App\Media::class, 'model'); } /** * Get the user who added note. */ public function createdBy() { return $this->belongsTo(\App\User::class, 'created_by'); } public function getActivitylogOptions(): LogOptions { return LogOptions::defaults(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0 |
proxy
|
phpinfo
|
Settings