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