mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 01:34:33 -04:00
change logo_url to company_logo_url
This commit is contained in:
parent
b8515e26b0
commit
d35a90cb94
@ -157,7 +157,7 @@ class CompanySettings extends BaseSettings
|
|||||||
/* Company Meta data that we can use to build sub companies*/
|
/* Company Meta data that we can use to build sub companies*/
|
||||||
|
|
||||||
public $name = '';
|
public $name = '';
|
||||||
public $logo_url = '';
|
public $company_logo_url = '';
|
||||||
public $website = '';
|
public $website = '';
|
||||||
public $address1 = '';
|
public $address1 = '';
|
||||||
public $address2 = '';
|
public $address2 = '';
|
||||||
@ -172,7 +172,7 @@ class CompanySettings extends BaseSettings
|
|||||||
|
|
||||||
public static $casts = [
|
public static $casts = [
|
||||||
'name' => 'string',
|
'name' => 'string',
|
||||||
'logo_url' => 'string',
|
'company_logo_url' => 'string',
|
||||||
'website' => 'string',
|
'website' => 'string',
|
||||||
'address1' => 'string',
|
'address1' => 'string',
|
||||||
'address2' => 'string',
|
'address2' => 'string',
|
||||||
|
@ -205,10 +205,10 @@ class CompanyController extends BaseController
|
|||||||
|
|
||||||
$company = CreateCompany::dispatchNow($request->all(), auth()->user()->company()->account);
|
$company = CreateCompany::dispatchNow($request->all(), auth()->user()->company()->account);
|
||||||
|
|
||||||
if($request->file('logo'))
|
if($request->file('company_logo'))
|
||||||
{
|
{
|
||||||
|
|
||||||
$path = UploadAvatar::dispatchNow($request->file('logo'), $company->company_key);
|
$path = UploadAvatar::dispatchNow($request->file('company_logo'), $company->company_key);
|
||||||
|
|
||||||
if($path){
|
if($path){
|
||||||
|
|
||||||
@ -420,10 +420,10 @@ class CompanyController extends BaseController
|
|||||||
{
|
{
|
||||||
$company = $this->company_repo->save($request->all(), $company);
|
$company = $this->company_repo->save($request->all(), $company);
|
||||||
|
|
||||||
if($request->file('logo'))
|
if($request->file('company_logo'))
|
||||||
{
|
{
|
||||||
\Log::error('logo present');
|
\Log::error('logo present');
|
||||||
$path = UploadAvatar::dispatchNow($request->file('logo'), $company->company_key);
|
$path = UploadAvatar::dispatchNow($request->file('company_logo'), $company->company_key);
|
||||||
|
|
||||||
if($path){
|
if($path){
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class StoreCompanyRequest extends Request
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => 'required',
|
'name' => 'required',
|
||||||
'logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb
|
'company_logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb
|
||||||
// 'settings' => 'json',
|
// 'settings' => 'json',
|
||||||
// 'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx',
|
// 'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx',
|
||||||
];
|
];
|
||||||
|
@ -35,7 +35,7 @@ class UpdateCompanyRequest extends Request
|
|||||||
{
|
{
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb
|
'company_logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb
|
||||||
'industry_id' => 'integer|nullable',
|
'industry_id' => 'integer|nullable',
|
||||||
'size_id' => 'integer|nullable',
|
'size_id' => 'integer|nullable',
|
||||||
'country_id' => 'integer|nullable',
|
'country_id' => 'integer|nullable',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user