You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
671 B
24 lines
671 B
|
2 days ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Resources\Mobile;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Explicit internal representation for a future authorized admin API.
|
||
|
|
* Public mobile endpoints must never use this resource.
|
||
|
|
*/
|
||
|
|
class AdminCourseResource extends PublicCourseResource
|
||
|
|
{
|
||
|
|
public function toArray($request)
|
||
|
|
{
|
||
|
|
$data = parent::toArray($request);
|
||
|
|
$data['admin_id'] = $this->admin_id;
|
||
|
|
$data['department_id'] = $this->department_id;
|
||
|
|
$data['teacher_id'] = $this->teacher_id;
|
||
|
|
$data['is_virtual'] = (bool) $this->is_virtual;
|
||
|
|
$data['show_txl'] = (bool) $this->show_txl;
|
||
|
|
$data['show_mobile'] = (bool) $this->show_mobile;
|
||
|
|
|
||
|
|
return $data;
|
||
|
|
}
|
||
|
|
}
|