fixed #56
This commit is contained in:
parent
9710f81053
commit
f707f0d0d5
@ -54,7 +54,7 @@ class Companies extends Controller
|
|||||||
Setting::forgetAll();
|
Setting::forgetAll();
|
||||||
|
|
||||||
// Create company
|
// Create company
|
||||||
$company = Company::create(['domain' => $request->get('domain')]);
|
$company = Company::create($request->input());
|
||||||
|
|
||||||
// Create settings
|
// Create settings
|
||||||
Setting::set('general.company_name', $request->get('company_name'));
|
Setting::set('general.company_name', $request->get('company_name'));
|
||||||
@ -113,7 +113,7 @@ class Companies extends Controller
|
|||||||
$this->authorizeUserOrRedirect($company);
|
$this->authorizeUserOrRedirect($company);
|
||||||
|
|
||||||
// Update company
|
// Update company
|
||||||
$company->update(['domain' => $request->get('domain')]);
|
$company->update($request->input());
|
||||||
|
|
||||||
// Get the company settings
|
// Get the company settings
|
||||||
Setting::forgetAll();
|
Setting::forgetAll();
|
||||||
|
@ -16,14 +16,14 @@ class Company extends Eloquent
|
|||||||
|
|
||||||
protected $dates = ['deleted_at'];
|
protected $dates = ['deleted_at'];
|
||||||
|
|
||||||
protected $fillable = ['domain'];
|
protected $fillable = ['domain', 'enabled'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sortable columns.
|
* Sortable columns.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public $sortable = ['name', 'domain', 'email', 'created_at'];
|
public $sortable = ['name', 'domain', 'email', 'enabled', 'created_at'];
|
||||||
|
|
||||||
public function accounts()
|
public function accounts()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user