Duh, we don’t soft-delete companies

This commit is contained in:
snipe 2016-07-26 02:11:41 -07:00
parent b30369f7ce
commit b76dc25ac0

View file

@ -3,7 +3,6 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Watson\Validating\ValidatingTrait; use Watson\Validating\ValidatingTrait;
use App\Http\Traits\UniqueUndeletedTrait;
use Auth; use Auth;
use DB; use DB;
@ -18,7 +17,7 @@ final class Company extends Model
// Declare the rules for the model validation // Declare the rules for the model validation
protected $rules = [ protected $rules = [
'name' => 'required|min:1|max:255|unique_undeleted' 'name' => 'required|min:1|max:255|unique:companies,name'
]; ];
@ -31,7 +30,6 @@ final class Company extends Model
*/ */
protected $injectUniqueIdentifier = true; protected $injectUniqueIdentifier = true;
use ValidatingTrait; use ValidatingTrait;
use UniqueUndeletedTrait;
/** /**