for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace GiveBlood\Modules\Campaign;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GiveBlood\Modules\Users\User;
use GiveBlood\Traits\UuidTrait;
class Campaign extends Model
{
use SoftDeletes, UuidTrait;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'campaigns';
* Indicates if the IDs are auto-incrementing.
* @var bool
public $incrementing = false;
* The attributes that are mass assignable.
* @var array
protected $filliable = [ 'title', 'description', 'image', 'expires', 'user_id' ];
protected $hidden = [ 'created_at', 'updated_at', 'deleted_at', 'user_id' ];
protected $dates = [
'created_at', 'updated_at', 'deleted_at'
];
* Return the owner of campaign
public function owner()
return $this->belongsTo(User::class, 'user_id');
}