%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/app/Models/ |
Upload File : |
<?php
namespace App\Models;
use App\Traits\HasCompany;
/**
* App\Models\SlackSetting
*
* @property int $id
* @property string|null $slack_webhook
* @property string|null $slack_logo
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string $status
* @property-read mixed $icon
* @property-read mixed $slack_logo_url
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting query()
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting whereSlackLogo($value)
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting whereSlackWebhook($value)
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting whereUpdatedAt($value)
* @property int|null $company_id
* @property-read \App\Models\Company|null $company
* @method static \Illuminate\Database\Eloquent\Builder|SlackSetting whereCompanyId($value)
* @mixin \Eloquent
*/
class SlackSetting extends BaseModel
{
use HasCompany;
protected $appends = ['slack_logo_url'];
public function getSlackLogoUrlAttribute()
{
if (is_null($this->slack_logo)) {
return $this->company->logo_url;
}
return asset_url_local_s3('slack-logo/' . $this->slack_logo);
}
public static function setting()
{
return slack_setting();
}
}