upgrade to filament v4
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Commands\Sales;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use App\Commands\Command;
|
||||
use App\DataObjects\CreateSaleDTO;
|
||||
use App\Models\Sale;
|
||||
@@ -15,7 +16,7 @@ class CreateSaleCommand implements Command
|
||||
return DB::transaction(function () use ($data, &$sale) {
|
||||
$tData = new CreateSaleDTO(
|
||||
reference_number: $data['current_series'],
|
||||
happened_on: \Carbon\Carbon::parse($data['happened_on']),
|
||||
happened_on: Carbon::parse($data['happened_on']),
|
||||
branch_id: $data['branch_id'],
|
||||
user_id: Auth::user()->id,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user