styling
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
namespace App\Jobs\Common;
|
||||
|
||||
use App\Abstracts\Job;
|
||||
use App\Models\Common\Item;
|
||||
use App\Jobs\Common\CreateItemTaxes;
|
||||
use App\Models\Common\Item;
|
||||
|
||||
class CreateItem extends Job
|
||||
{
|
||||
|
@ -28,9 +28,7 @@ class DeleteItem extends Job
|
||||
$this->authorize();
|
||||
|
||||
\DB::transaction(function () {
|
||||
$this->deleteRelationships($this->item, [
|
||||
'taxes'
|
||||
]);
|
||||
$this->deleteRelationships($this->item, ['taxes']);
|
||||
|
||||
$this->item->delete();
|
||||
});
|
||||
|
@ -3,8 +3,8 @@
|
||||
namespace App\Jobs\Common;
|
||||
|
||||
use App\Abstracts\Job;
|
||||
use App\Models\Common\Item;
|
||||
use App\Jobs\Common\CreateItemTaxes;
|
||||
use App\Models\Common\Item;
|
||||
|
||||
class UpdateItem extends Job
|
||||
{
|
||||
|
Reference in New Issue
Block a user