Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/app/Models/Message.php
Назад
<?php namespace App\Models; use App\Models\User; use App\Models\CrmCustomer; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Message extends Model { use HasFactory; protected $table='messages'; protected $fillable = [ 'id', 'sender_id', 'reciever_id', 'message', 'created_at', 'updated_at', ]; public function sender() { return $this->belongsTo(User::class,'sender_id','id'); } public function reciever(){ return $this->belongsTo(User::class,'reciever_id','id'); } // public function recievedMessages(){ // return $this->belongsTo(User::class,'reciever_id'); // } // public function to() // { // return $this->belongsTo(User::class,'reciever_id'); // } // public function sender() { // return $this->belongsTo(User::class, 'sender_id'); // } // public function recipient() { // return $this->belongsTo(User::class, 'reciever_id'); // } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка