InformationRepository.php 571 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php

namespace App\Repositories\Webprofile\En;

use App\Models\Webprofile\En\Information;
use App\Repositories\Repository;
use Illuminate\Database\Eloquent\Model;

class InformationRepository extends Repository
{
    public function __construct(Information $model)
    {
        $this->model = $model;
    }

    public function get()
    {
    }
19

20 21 22
    public function paginate()
    {
    }
23 24 25 26 27 28 29

    public function update($data, $information)
    {
        return $this->model->updateOrCreate([
            'information_id' => $information->id,
        ], $data);
    }
30
}