mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 04:13:46 +02:00
Always include the tasks with a schedule
This commit is contained in:
@@ -40,6 +40,13 @@ class Schedule extends Validable
|
||||
*/
|
||||
protected $table = 'schedules';
|
||||
|
||||
/**
|
||||
* Always return the tasks associated with this schedule.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $with = ['tasks'];
|
||||
|
||||
/**
|
||||
* Mass assignable attributes on this model.
|
||||
*
|
||||
|
||||
@@ -13,6 +13,11 @@ class ScheduleTransformer extends BaseClientTransformer
|
||||
*/
|
||||
protected $availableIncludes = ['tasks'];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $defaultIncludes = ['tasks'];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user