Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ledger.corals.io/Corals/modules/TroubleTicket/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ledger.corals.io/Corals/modules/TroubleTicket/Models/PublicOwner.php
<?php

namespace Corals\Modules\TroubleTicket\Models;

use Corals\Foundation\Models\BaseModel;
use Corals\Foundation\Traits\ModelPropertiesTrait;
use Corals\Foundation\Transformers\PresentableTrait;
use Illuminate\Notifications\Notifiable;
use Spatie\Activitylog\Traits\LogsActivity;

class PublicOwner extends BaseModel
{
    use PresentableTrait, LogsActivity, ModelPropertiesTrait, Notifiable;

    /**
     *  Model configuration.
     * @var string
     */
    public $config = 'trouble_ticket.models.public_owner';

    protected $table = 'tt_public_owners';

    protected $casts = [
        'properties' => 'json',
    ];

    public $guarded = ['id'];

    public function getIdentifier($key = null)
    {
        return sprintf("%s (%s)", $this->name, $this->email);
    }

    public function getFullNameAttribute()
    {
        return $this->name;
    }

    public function getPictureAttribute()
    {
        $id = $this->attributes['id'] ?? 1;
        $avatar = 'avatar_' . ($id % 10) . '.png';
        return asset(config('user.models.user.default_picture') . $avatar);
    }
}

Spamworldpro Mini