Skip to content

Commit

Permalink
Merge pull request #27 from andreas-bergstrom/patch-1
Browse files Browse the repository at this point in the history
Updated Article.php model to use soft delete trait
  • Loading branch information
fideloper committed Nov 11, 2014
2 parents e0c0fca + a522f01 commit b7c182a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/models/Article.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Illuminate\Database\Eloquent\SoftDeletingTrait;

class Article extends Eloquent {

/**
Expand All @@ -24,11 +26,10 @@ class Article extends Eloquent {
);

/**
* Indicates if the model should soft delete.
* Enable soft delete.
*
* @var bool
*/
protected $softDelete = true;
use SoftDeletingTrait;

/**
* Define a one-to-one relationship.
Expand Down

0 comments on commit b7c182a

Please sign in to comment.