mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
- Added routes for user profile management including edit, update, and delete functionalities. - Created ProfileController to handle profile-related requests. - Introduced Profile model to manage user profile data. - Developed user status states (Active, Banned, Suspended) with appropriate labels and descriptions. - Implemented favorite listings and sellers functionality in the User model. - Created views for profile editing, updating password, and deleting account. - Added migration for user and profile tables along with necessary fields. - Registered User module with service provider and routes.
27 lines
579 B
PHP
27 lines
579 B
PHP
<?php
|
|
|
|
namespace Modules\Conversation\App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Modules\User\App\Models\User;
|
|
|
|
class ConversationMessage extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['conversation_id', 'sender_id', 'body', 'read_at'];
|
|
|
|
protected $casts = ['read_at' => 'datetime'];
|
|
|
|
public function conversation()
|
|
{
|
|
return $this->belongsTo(Conversation::class);
|
|
}
|
|
|
|
public function sender()
|
|
{
|
|
return $this->belongsTo(User::class, 'sender_id');
|
|
}
|
|
}
|