Example #1
0
 function comments($limit = null)
 {
     //        $this->model->load('comments.author');
     $realplexor_channel = '';
     if (class_exists('Realplexor\\Helper')) {
         $realplexor_channel = \Realplexor\Helper::channel(['vendor' => static::getVendor(), 'entity' => static::getEntity(), 'id' => $this->model->id]);
     }
     return \View::make('larakit::!.partials.comments', ['comments' => $this->model->comments()->with('author')->orderBy('created_at', 'desc'), 'vendor' => static::getVendor(), 'realplexor_channel' => $realplexor_channel, 'limit' => $limit, 'entity' => static::getEntity(), 'id' => $this->model->id]);
 }