Make suppliers deletable.

This commit is contained in:
2025-02-13 17:13:20 +01:00
parent f3d8c00d78
commit 65a3c4ba07
6 changed files with 156 additions and 16 deletions

View File

@@ -72,7 +72,7 @@ class Incoming extends Model
*/
public function supplier(): BelongsTo
{
return $this->belongsTo(Supplier::class);
return $this->belongsTo(Supplier::class)->withTrashed();
}
/**

View File

@@ -4,9 +4,12 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
class Supplier extends Model
{
use SoftDeletes;
/**
* The attributes that are mass assignable.
*