for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Magister\Models\Grade;
use Config;
use Magister\Services\Database\Elegant\Model;
/**
* Class Grade.
*/
class Grade extends Model
{
* The primary key for the model.
*
* @var string
protected $primaryKey = 'CijferId';
* The attributes that should be mutated to dates.
* @var array
protected $dates = ['DatumIngevoerd'];
* Get the url associated with the model.
* @return string
public function getUrl()
return Config::get('url.grade');
}
* Define a relationship.
* @return mixed
public function info()
return $this->hasOne('Magister\Models\Grade\Info', 'cijfer', 'CijferKolom.Id');