%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;
/**
* App\Models\SocialAuthSetting
*
* @property int $id
* @property string|null $facebook_client_id
* @property string|null $facebook_secret_id
* @property string $facebook_status
* @property string|null $google_client_id
* @property string|null $google_secret_id
* @property string $google_status
* @property string|null $twitter_client_id
* @property string|null $twitter_secret_id
* @property string $twitter_status
* @property string|null $linkedin_client_id
* @property string|null $linkedin_secret_id
* @property string $linkedin_status
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read mixed $social_auth_enable
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting query()
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereFacebookClientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereFacebookSecretId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereFacebookStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereGoogleClientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereGoogleSecretId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereGoogleStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereLinkedinClientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereLinkedinSecretId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereLinkedinStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereTwitterClientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereTwitterSecretId($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereTwitterStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|SocialAuthSetting whereUpdatedAt($value)
* @mixin \Eloquent
*/
class SocialAuthSetting extends BaseModel
{
protected $table = 'social_auth_settings';
protected $guarded = ['id'];
protected $appends = ['social_auth_enable'];
public function getSocialAuthEnableAttribute()
{
return in_array('enable', [
$this->linkedin_status,
$this->google_status,
$this->twitter_status
]);
}
}