@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $transaction = Transaction::findOrFail($transactionId); |
| 88 | 88 | |
| 89 | 89 | // get attachment of transaction |
| 90 | - $media = $transaction->getMedia('attachments')->first(function ($item) use ($fileName) { |
|
| 90 | + $media = $transaction->getMedia('attachments')->first(function($item) use ($fileName) { |
|
| 91 | 91 | return $item->file_name == $fileName; |
| 92 | 92 | }); |
| 93 | 93 | |
@@ -27,10 +27,10 @@ |
||
| 27 | 27 | 'Payee' => $item->payee_name, |
| 28 | 28 | 'Category' => $item->category_name, |
| 29 | 29 | 'SubCategory' => $item->sub_category_name, |
| 30 | - 'Amount' => (string) floatval($item->amount), |
|
| 30 | + 'Amount' => (string)floatval($item->amount), |
|
| 31 | 31 | 'Notes' => $item->notes, |
| 32 | 32 | 'Attachments' => $item->getMedia('attachments') |
| 33 | - ->map(function (Media $mediaItem) { |
|
| 33 | + ->map(function(Media $mediaItem) { |
|
| 34 | 34 | return $mediaItem->file_name; |
| 35 | 35 | })->implode(';'), ]; |
| 36 | 36 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('media', function (Blueprint $table) { |
|
| 14 | + Schema::create('media', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | $table->morphs('model'); |
| 17 | 17 | $table->string('collection_name'); |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | 'Payee' => $transaction->payee_name, |
| 160 | 160 | 'Category' => $transaction->category_name, |
| 161 | 161 | 'SubCategory' => $transaction->sub_category_name, |
| 162 | - 'Amount' => (string) $transaction->amount, |
|
| 162 | + 'Amount' => (string)$transaction->amount, |
|
| 163 | 163 | 'Notes' => $transaction->notes, |
| 164 | 164 | 'Attachments' => 'Transaction_'.$transaction->id.'_test-receipt.png;Transaction_'.$transaction->id |
| 165 | 165 | .'_test-receipt-2.png;Transaction_'.$transaction->id.'_test-receipt-3.png', |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | 'Payee' => $transaction->payee_name, |
| 160 | 160 | 'Category' => $transaction->category_name, |
| 161 | 161 | 'SubCategory' => $transaction->sub_category_name, |
| 162 | - 'Amount' => (string) $transaction->amount, |
|
| 162 | + 'Amount' => (string)$transaction->amount, |
|
| 163 | 163 | 'Notes' => $transaction->notes, |
| 164 | 164 | 'Attachments' => 'Transaction_'.$transaction->id.'_test-receipt.png;Transaction_'.$transaction->id |
| 165 | 165 | .'_test-receipt-2.png;Transaction_'.$transaction->id.'_test-receipt-3.png', |
@@ -17,6 +17,6 @@ |
||
| 17 | 17 | Route::get('/', 'HomeController@index'); |
| 18 | 18 | Route::resource('transactions', 'TransactionController'); |
| 19 | 19 | |
| 20 | -Route::group(['prefix' => '/admin'], function () { |
|
| 20 | +Route::group(['prefix' => '/admin'], function() { |
|
| 21 | 21 | Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index'); |
| 22 | 22 | }); |