Add some debug.

This commit is contained in:
James Cole 2023-01-11 17:29:19 +01:00
parent e783b8dba4
commit 566a303650
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 5 additions and 1 deletions

View File

@ -33,6 +33,7 @@ use FireflyIII\Support\Request\ConvertsDataTypes;
use FireflyIII\Validation\GroupValidation;
use FireflyIII\Validation\TransactionValidation;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Log;
use Illuminate\Validation\Validator;
use Log;
@ -61,6 +62,7 @@ class UpdateRequest extends FormRequest
*/
public function getAll(): array
{
Log::debug(sprintf('Now in %s', __METHOD__));
$this->integerFields = [
'order',
'currency_id',
@ -153,7 +155,7 @@ class UpdateRequest extends FormRequest
*/
private function getTransactionData(): array
{
Log::debug('Now in getTransactionData()');
Log::debug(sprintf('Now in %s', __METHOD__));
$return = [];
if (!is_countable($this->get('transactions'))) {
@ -312,6 +314,7 @@ class UpdateRequest extends FormRequest
*/
public function rules(): array
{
Log::debug(sprintf('Now in %s', __METHOD__));
return [
// basic fields for group:
'group_title' => 'between:1,1000',

View File

@ -35,6 +35,7 @@ trait ChecksLogin
*/
public function authorize(): bool
{
Log::debug(sprintf('Now in %s', __METHOD__));
// Only allow logged in users
return auth()->check();
}