More base setup and integration with AdminLTE

This commit is contained in:
Deon George
2016-10-21 01:40:52 +11:00
parent 84ae365676
commit 3f54233c39
1495 changed files with 841197 additions and 20908 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App;
use Config;
class MultiTenantObserver
{
// Capture our saves and include a site ID
public function saving($model)
{
$so = Config::get('SITE_SETUP');
if (! $so instanceOf Setup OR ! $so->exists)
return;
if (is_null($model->site_id) OR $model->site_id != $so->id)
$model->site_id = $so->id;
else
dd(__METHOD__,$model,$so);
}
}