mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Always include the tasks with a schedule
This commit is contained in:
parent
1e0d630e1f
commit
cf7f36c950
@ -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}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user