public function store(StoreTransactionRequest $request)
 {
     Transaction::createNew($request->all());
     flash()->success('Transaction created successfully');
     return redirect()->route('transaction.index');
 }
Exemplo n.º 2
0
 private function createTransaction(Tag $tag)
 {
     return Transaction::createNew(['date' => Carbon::today()->format('d/m/Y'), 'name' => 'Rent', 'value' => 625, 'tag_id' => $tag->id]);
 }