![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/app/Repositories/ |
<?php namespace App\Repositories; use App\Models\Appointment; use App\Models\Permission; use App\Models\Role; use App\Models\Transaction; use App\Repositories\BaseRepository; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; /** * Class RoleRepository * @package App\Repositories * @version August 5, 2021, 10:43 am UTC */ class TransactionRepository extends BaseRepository { /** * @var array */ protected $fieldSearchable = [ 'name', ]; /** * Return searchable fields * * @return array */ public function getFieldsSearchable() { return $this->fieldSearchable; } /** * Configure the Model **/ public function model() { return Transaction::class; } /** * @param $id * * @return array */ public function show($id) { $transaction['data'] = Transaction::with('user', 'appointment.doctor.user')->whereId($id)->first(); return $transaction; } }