%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\Scopes\ActiveScope;
use App\Traits\HasCompany;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* Class StickyNote
*
* @package App
* @property int $id
* @property int $user_id
* @property string $note_text
* @property string $colour
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read mixed $icon
* @property-read \App\Models\User $userDetail
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote query()
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote whereColour($value)
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote whereNoteText($value)
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote whereUserId($value)
* @property int|null $company_id
* @property-read \App\Models\Company|null $company
* @method static \Illuminate\Database\Eloquent\Builder|StickyNote whereCompanyId($value)
* @mixin \Eloquent
*/
class StickyNote extends BaseModel
{
use HasCompany;
protected $table = 'sticky_notes';
protected $casts = [
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function userDetail(): BelongsTo
{
return $this->belongsTo(User::class, 'user_id')->withoutGlobalScope(ActiveScope::class);
}
}