Файловый менеджер - Редактировать - /home/clickysoft/public_html/rgr.clickysoft.net/app/Models/Practice.php
Назад
<?php namespace App\Models; use App\Models\User; use App\Models\PracticeDetail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Practice extends Model { use HasFactory; protected $fillable = [ 'name', 'address', 'address_2', 'state_id', 'city_id', 'zip_code', 'description', 'status', 'longitude', 'longitude', 'profile_name', 'is_featured', 'other_info', 'hide', 'other_emails', ]; public function user() { return $this->belongsTo(User::class); } public function users() { return $this->hasMany(User::class, 'practice_id', 'id')->with('user_detail'); } public function practice_detail() { return $this->belongsTo(PracticeDetail::class); } public static function getByUserId($user_id) { return self::query()->where('user_id', $user_id)->first(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка