for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Entities;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Reply.
*
* @property int $id
* @property int $user_id
* @property int $topic_id
* @property string $content
* @property Carbon $created_at
* @property Carbon $updated_at
*/
class Reply extends Model
{
use SoftDeletes;
protected $fillable = [
'user_id',
'topic_id',
'content',
];
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
public function user()
return $this->belongsTo(User::class);
}
public function topic()
return $this->belongsTo(Topic::class);