for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Scool\Timetables\Models;
use Acacha\Names\Traits\Nameable;
use Acacha\Stateful\Traits\StatefulTrait;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class Desiratum extends Model implements Transformable
{
use TransformableTrait, Nameable, StatefulTrait;
protected $fillable = [
'torn', 'name',
];
//TODO falta la relació completa, falta la classe Timeslot. Traits
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
*/
public function timeslots()
return $this->belongsToMany(App\Timeslot::class);
}