mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 10:14:36 -04:00
Group Settings
This commit is contained in:
parent
d05e7fb845
commit
95be70a7b5
@ -21,7 +21,7 @@ class GroupSettingFactory
|
|||||||
|
|
||||||
$gs = new GroupSetting;
|
$gs = new GroupSetting;
|
||||||
$gs->name = '';
|
$gs->name = '';
|
||||||
$gs->account_id = $company_id;
|
$gs->company_id = $company_id;
|
||||||
$gs->user_id = $user_id;
|
$gs->user_id = $user_id;
|
||||||
$gs->settings = json_encode([]);
|
$gs->settings = json_encode([]);
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ class StoreGroupSettingRequest extends Request
|
|||||||
return [
|
return [
|
||||||
'name' => 'required',
|
'name' => 'required',
|
||||||
'settings' => 'json',
|
'settings' => 'json',
|
||||||
]
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ class UpdateGroupSettingRequest extends Request
|
|||||||
{
|
{
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'settings' => 'json'
|
'settings' => 'json',
|
||||||
]
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ class GroupSetting extends StaticModel
|
|||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
'name',
|
||||||
'settings'
|
'settings'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ class RouteServiceProvider extends ServiceProvider
|
|||||||
return \App\Models\Proposal::where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
return \App\Models\Proposal::where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::bind('groupo_setting', function ($value) {
|
Route::bind('group_setting', function ($value) {
|
||||||
return \App\Models\GroupSetting::where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
return \App\Models\GroupSetting::where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user