FIX: lots of bugfixes, sorry for ugly commit

This commit is contained in:
Michal Kváček
2017-02-09 23:10:11 +01:00
parent 99ed8806da
commit b7d4ab9515
47 changed files with 180 additions and 199 deletions
@@ -1,10 +1,9 @@
<?php
namespace App\Models\Content\ModelTraits;
use App\CMS\Handlers\Contracts\AppHandler;
use App\CMS\Handlers\Contracts\HistoryHandler;
use App\CMS\Helpers\Differ;
use App\Models\Content\Content;
use App\Models\Content\Content as ContentModel;
trait ContentHistory
{
@@ -15,7 +14,7 @@ trait ContentHistory
*
* @return array
*/
public function getStructuredHistoryOf(Content $content)
public function getStructuredHistoryOf(ContentModel $content)
{
$data = $content->history()
->select('content_history.*', 'contents.moduleHandler', 'users.email AS user_email', 'users.name AS user_name')