mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
68 lines
2.8 KiB
PHP
68 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Eloquent;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Illuminate\Database\Query\Builder;
|
|
use Illuminate\Support\Carbon;
|
|
use Spatie\Activitylog\Models\Activity;
|
|
|
|
/**
|
|
* App\Models\Notification
|
|
*
|
|
* @property int $id
|
|
* @property string $title
|
|
* @property string $description
|
|
* @property string $subject_type
|
|
* @property int $subject_id
|
|
* @property string $target_type
|
|
* @property int $target_id
|
|
* @property string $causer_type
|
|
* @property int $causer_id
|
|
* @property int $status
|
|
* @property Carbon|null $deleted_at
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
* @property-read Collection|Activity[] $activities
|
|
* @property-read int|null $activities_count
|
|
* @property-read Model|Eloquent $causer
|
|
* @property-read Package|null $package
|
|
* @property-read Model|Eloquent $subject
|
|
* @property-read Model|Eloquent $target
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification newQuery()
|
|
* @method static Builder|Notification onlyTrashed()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereCauserId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereCauserType($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereDeletedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereDescription($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereStatus($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereSubjectId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereSubjectType($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereTargetId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereTargetType($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Notification whereUpdatedAt($value)
|
|
* @method static Builder|Notification withTrashed()
|
|
* @method static Builder|Notification withoutTrashed()
|
|
* @mixin Eloquent
|
|
*/
|
|
class Notification extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'notifications';
|
|
|
|
public function package(): BelongsTo
|
|
{
|
|
return $this->BelongsTo(Package::class, 'package_id', 'id');
|
|
}
|
|
}
|