for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Activity extends Model
{
protected $connection = 'tenant';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['candidate_id', 'user_id', 'type', 'prev_value', 'new_value'];
public function candidate()
return $this->belongsTo(Candidate::class);
}
public function user()
return $this->belongsTo(User::class)->withTrashed();