mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
fa83ce10a3
* 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
25 lines
430 B
PHP
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();
|
|
|
|
}
|
|
|
|
} |