Started work on SiteDetails and Setup

This commit is contained in:
Deon George
2018-07-31 14:11:00 +10:00
parent 0ce640c283
commit 1cde2a888a
24 changed files with 1373 additions and 177 deletions

View File

@@ -29,11 +29,9 @@ class SetSite
// @todo Figure out how to know if this is an API call - and deny it if it's not in the database.
$so = new Site;
if (Schema::hasTable('site'))
if ($so->getTable() AND Schema::hasTable($so->getTable()))
{
$so = Site::where('url',$request->root())
->orwhere('devurl',$request->root())
// @todo With an API call, we would use ->firstorfail();
->first();
}