Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rtconner committed Oct 19, 2015
1 parent d40146e commit d08bb0d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Model/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
/**
* Copyright (C) 2014 Robert Conner
*/
class Tag extends Eloquent {

class Tag extends Eloquent
{
protected $table = 'tagging_tags';
public $timestamps = false;
protected $softDelete = false;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Tagged.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Tagged extends Eloquent
protected $table = 'tagging_tagged';
public $timestamps = false;
protected $fillable = ['tag_name', 'tag_slug'];
protected $taggingUtility;

public function __construct(array $attributes = array())
{
Expand Down
8 changes: 4 additions & 4 deletions src/Taggable.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php namespace Conner\Tagging;

use Illuminate\Support\Facades\Config;
use Illuminate\Database\Eloquent\Collection;
use Conner\Tagging\Model\Tagged;
use Conner\Tagging\Contracts\TaggingUtility;
use Conner\Tagging\Events\TagRemoved;
use Conner\Tagging\Events\TagAdded;
use Conner\Tagging\Events\TagRemoved;
use Conner\Tagging\Model\Tagged;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\Config;

/**
* Copyright (C) 2014 Robert Conner
Expand Down
4 changes: 2 additions & 2 deletions src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function incrementCount($tagString, $tagSlug, $count)
$tag = $model::where('slug', '=', $tagSlug)->first();

if(!$tag) {
$tag = new Tag;
$tag = new $model;
$tag->name = $tagString;
$tag->slug = $tagSlug;
$tag->suggest = false;
Expand Down Expand Up @@ -214,7 +214,7 @@ public function deleteUnusedTags()
/**
* @return string
*/
public static function tagModelString()
public function tagModelString()
{
return config('tagging.tag_model', '\Conner\Tagging\Model\Tag');
}
Expand Down

0 comments on commit d08bb0d

Please sign in to comment.