FIX: lots of bugfixes, sorry for ugly commit
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user