mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
69 lines
1.6 KiB
PHP
69 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Http\Controllers\ClientPortal;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Http\Requests\ClientPortal\UpdateContactRequest;
|
|
use App\Models\ClientContact;
|
|
use Illuminate\Http\Request;
|
|
|
|
class ProfileController extends Controller
|
|
{
|
|
|
|
/**
|
|
* Display the specified resource.
|
|
*
|
|
* @param int $id
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function show($id)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Show the form for editing the specified resource.
|
|
*
|
|
* @param int $id
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function edit(ClientContact $client_contact)
|
|
{
|
|
/* Dropzone configuration */
|
|
$data = [
|
|
'params' => [
|
|
'is_avatar' => TRUE,
|
|
],
|
|
'url' => '/client/document',
|
|
'multi_upload' => FALSE,
|
|
];
|
|
|
|
return view('portal.default.profile.index', $data);
|
|
}
|
|
|
|
/**
|
|
* Update the specified resource in storage.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param int $id
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function update(UpdateContactRequest $request, ClientContact $client_contact)
|
|
{
|
|
//dd($client_contact);
|
|
tap($client_contact)->update($request->all());
|
|
|
|
return view('portal.default.profile.index');
|
|
}
|
|
|
|
}
|