for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PolarAdmin\Polar\Models;
use PolarAdmin\Polar\Polar;
use Illuminate\Database\Eloquent\Model;
class PolarNotification extends Model
{
protected $table = 'polar_notifications';
protected $guarded = [];
protected $hidden = [];
protected $casts = [
'id' => 'int',
'user_id' => 'int',
'extra' => 'array',
'read' => 'bool',
];
public function user()
return $this->belongsTo(Polar::userModel(), 'user_id');
}