ok
Direktori : /home2/selectio/public_html/fms-worksuite/app/Models/ |
Current File : /home2/selectio/public_html/fms-worksuite/app/Models/ExpensesCategoryRole.php |
<?php namespace App\Models; use App\Traits\HasCompany; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * App\Models\ExpensesCategoryRole * * @property int $id * @property int|null $expenses_category_id * @property int $role_id * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\ExpensesCategory $category * @property-read \App\Models\Role $role * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole query() * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole whereExpensesCategoryId($value) * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole whereRoleId($value) * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole whereUpdatedAt($value) * @property int|null $company_id * @property-read \App\Models\Company|null $company * @method static \Illuminate\Database\Eloquent\Builder|ExpensesCategoryRole whereCompanyId($value) * @mixin \Eloquent */ class ExpensesCategoryRole extends BaseModel { use HasCompany; protected $table = 'expenses_category_roles'; public function category(): BelongsTo { return $this->belongsTo(ExpensesCategory::class); } public function role(): BelongsTo { return $this->belongsTo(Role::class); } }