mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Group Settings
This commit is contained in:
parent
d05e7fb845
commit
95be70a7b5
@ -21,7 +21,7 @@ class GroupSettingFactory
|
||||
|
||||
$gs = new GroupSetting;
|
||||
$gs->name = '';
|
||||
$gs->account_id = $company_id;
|
||||
$gs->company_id = $company_id;
|
||||
$gs->user_id = $user_id;
|
||||
$gs->settings = json_encode([]);
|
||||
|
||||
|
@ -36,7 +36,7 @@ class StoreGroupSettingRequest extends Request
|
||||
return [
|
||||
'name' => 'required',
|
||||
'settings' => 'json',
|
||||
]
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
|
@ -32,8 +32,8 @@ class UpdateGroupSettingRequest extends Request
|
||||
{
|
||||
|
||||
return [
|
||||
'settings' => 'json'
|
||||
]
|
||||
'settings' => 'json',
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ class GroupSetting extends StaticModel
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'settings'
|
||||
];
|
||||
|
||||
|
@ -126,7 +126,7 @@ class RouteServiceProvider extends ServiceProvider
|
||||
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();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user