hide rate id from model

fixed DB not found in rate controller
This commit is contained in:
Jack Goh
2018-07-03 17:11:30 +08:00
parent 3aab1506c4
commit c902c8db82
4 changed files with 24 additions and 11 deletions
+1
View File
@@ -7,4 +7,5 @@ use Illuminate\Database\Eloquent\Model;
class Rate extends Model
{
protected $fillable = ['x1_cash','x1_cheque','x1_ba','x2_cash','x2_cheque','x2_ba'];
protected $hidden = ['id'];
}