1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Repositories/ClientRepository.php
David Bomba fa83ce10a3
Implement Typescript (#2514)
* Add contact

* Saving client and contacts

* working on ts implementation

* Need to pass  into TS

* client_edit.ts

* Need to pass  into TS

* declare variables
2018-11-22 22:12:41 +11:00

25 lines
430 B
PHP

<?php
namespace App\Repositories;
use App\Repositories\ClientContactRepository;
/**
*
*/
class ClientRepository extends BaseRepository
{
protected $clientContactRepository;
public function __construct(ClientContactRepository $clientContactRepository)
{
$this->clientContactRepository = $clientContactRepository;
}
public function save($data)
{
$client->fill($request->all())->save();
}
}