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 Backpack\CRUD\Tests\Unit\Models;
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Database\Eloquent\Model;
class User extends Model
{
use CrudTrait;
Backpack\CRUD\app\Models\Traits\CrudTrait
Backpack\CRUD\Tests\Unit\Models\User
$fakeColumns
$identifiableAttribute
$Type
protected $table = 'users';
protected $fillable = ['name', 'email', 'password', 'article_id'];
/**
* Get the account details associated with the user.
*/
public function accountDetails()
return $this->hasOne('Backpack\CRUD\Tests\Unit\Models\AccountDetails');
}
public function article()
return $this->belongsTo('Backpack\CRUD\Tests\Unit\Models\Article');
* Get the articles for this user.
public function articles()
return $this->hasMany('Backpack\CRUD\Tests\Unit\Models\Article');
* Get the user roles.
public function roles()
return $this->belongsToMany('Backpack\CRUD\Tests\Unit\Models\Role', 'user_role');
public function getNameComposedAttribute()
return $this->name.'++';