mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Various code cleanup and fixed alignments.
This commit is contained in:
parent
f963ac63f1
commit
f3773ebfc2
@ -23,7 +23,7 @@ $current = __DIR__;
|
|||||||
|
|
||||||
$paths = [
|
$paths = [
|
||||||
$current . '/../../app',
|
$current . '/../../app',
|
||||||
// $current . '/../../config',
|
$current . '/../../config',
|
||||||
// $current . '/../../database',
|
// $current . '/../../database',
|
||||||
// $current . '/../../routes',
|
// $current . '/../../routes',
|
||||||
// $current . '/../../tests',
|
// $current . '/../../tests',
|
||||||
|
@ -47,7 +47,7 @@ class DeleteEmptyGroups extends Command
|
|||||||
{
|
{
|
||||||
$groupIds
|
$groupIds
|
||||||
= TransactionGroup::leftJoin('transaction_journals', 'transaction_groups.id', '=', 'transaction_journals.transaction_group_id')
|
= TransactionGroup::leftJoin('transaction_journals', 'transaction_groups.id', '=', 'transaction_journals.transaction_group_id')
|
||||||
->whereNull('transaction_journals.id')->get(['transaction_groups.id'])->pluck('id')->toArray()
|
->whereNull('transaction_journals.id')->get(['transaction_groups.id'])->pluck('id')->toArray()
|
||||||
;
|
;
|
||||||
|
|
||||||
$total = count($groupIds);
|
$total = count($groupIds);
|
||||||
|
@ -74,19 +74,19 @@ class ForceDecimalSize extends Command
|
|||||||
private string $regularExpression;
|
private string $regularExpression;
|
||||||
private array $tables
|
private array $tables
|
||||||
= [
|
= [
|
||||||
'accounts' => ['virtual_balance'],
|
'accounts' => ['virtual_balance'],
|
||||||
'auto_budgets' => ['amount'],
|
'auto_budgets' => ['amount'],
|
||||||
'available_budgets' => ['amount'],
|
'available_budgets' => ['amount'],
|
||||||
'bills' => ['amount_min', 'amount_max'],
|
'bills' => ['amount_min', 'amount_max'],
|
||||||
'budget_limits' => ['amount'],
|
'budget_limits' => ['amount'],
|
||||||
'currency_exchange_rates' => ['rate', 'user_rate'],
|
'currency_exchange_rates' => ['rate', 'user_rate'],
|
||||||
'limit_repetitions' => ['amount'],
|
'limit_repetitions' => ['amount'],
|
||||||
'piggy_bank_events' => ['amount'],
|
'piggy_bank_events' => ['amount'],
|
||||||
'piggy_bank_repetitions' => ['currentamount'],
|
'piggy_bank_repetitions' => ['currentamount'],
|
||||||
'piggy_banks' => ['targetamount'],
|
'piggy_banks' => ['targetamount'],
|
||||||
'recurrences_transactions' => ['amount', 'foreign_amount'],
|
'recurrences_transactions' => ['amount', 'foreign_amount'],
|
||||||
'transactions' => ['amount', 'foreign_amount'],
|
'transactions' => ['amount', 'foreign_amount'],
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the console command.
|
* Execute the console command.
|
||||||
|
@ -296,11 +296,11 @@ class IndexController extends Controller
|
|||||||
// also calculate how much left from budgeted:
|
// also calculate how much left from budgeted:
|
||||||
$sums['left'][$currencyId]
|
$sums['left'][$currencyId]
|
||||||
??= [
|
??= [
|
||||||
'amount' => '0',
|
'amount' => '0',
|
||||||
'currency_id' => $budgeted['currency_id'],
|
'currency_id' => $budgeted['currency_id'],
|
||||||
'currency_symbol' => $budgeted['currency_symbol'],
|
'currency_symbol' => $budgeted['currency_symbol'],
|
||||||
'currency_decimal_places' => $budgeted['currency_decimal_places'],
|
'currency_decimal_places' => $budgeted['currency_decimal_places'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,11 +247,11 @@ class CategoryController extends Controller
|
|||||||
|
|
||||||
$chartData[$inKey]
|
$chartData[$inKey]
|
||||||
= [
|
= [
|
||||||
'label' => sprintf('%s (%s)', (string)trans('firefly.earned'), $currencyInfo['currency_name']),
|
'label' => sprintf('%s (%s)', (string)trans('firefly.earned'), $currencyInfo['currency_name']),
|
||||||
'entries' => [],
|
'entries' => [],
|
||||||
'type' => 'bar',
|
'type' => 'bar',
|
||||||
'backgroundColor' => 'rgba(0, 141, 76, 0.5)', // green
|
'backgroundColor' => 'rgba(0, 141, 76, 0.5)', // green
|
||||||
];
|
];
|
||||||
// loop empty periods:
|
// loop empty periods:
|
||||||
foreach (array_keys($periods) as $period) {
|
foreach (array_keys($periods) as $period) {
|
||||||
$label = $periods[$period];
|
$label = $periods[$period];
|
||||||
|
@ -122,13 +122,13 @@ class Account extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'user_id' => 'integer',
|
'user_id' => 'integer',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'encrypted' => 'boolean',
|
'encrypted' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'user_group_id', 'account_type_id', 'name', 'active', 'virtual_balance', 'iban'];
|
protected $fillable = ['user_id', 'user_group_id', 'account_type_id', 'name', 'active', 'virtual_balance', 'iban'];
|
||||||
|
|
||||||
|
@ -59,9 +59,9 @@ class AccountMeta extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['account_id', 'name', 'data'];
|
protected $fillable = ['account_id', 'name', 'data'];
|
||||||
|
|
||||||
|
@ -72,9 +72,9 @@ class AccountType extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['type'];
|
protected $fillable = ['type'];
|
||||||
|
|
||||||
|
@ -97,11 +97,11 @@ class Attachment extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'uploaded' => 'boolean',
|
'uploaded' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['attachable_id', 'attachable_type', 'user_id', 'md5', 'filename', 'mime', 'title', 'description', 'size', 'uploaded'];
|
protected $fillable = ['attachable_id', 'attachable_type', 'user_id', 'md5', 'filename', 'mime', 'title', 'description', 'size', 'uploaded'];
|
||||||
|
|
||||||
|
@ -80,13 +80,13 @@ class AvailableBudget extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'start_date' => 'date',
|
'start_date' => 'date',
|
||||||
'end_date' => 'date',
|
'end_date' => 'date',
|
||||||
'transaction_currency_id' => 'int',
|
'transaction_currency_id' => 'int',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'user_group_id', 'transaction_currency_id', 'amount', 'start_date', 'end_date'];
|
protected $fillable = ['user_id', 'user_group_id', 'transaction_currency_id', 'amount', 'start_date', 'end_date'];
|
||||||
|
|
||||||
|
@ -114,36 +114,36 @@ class Bill extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'date' => 'date',
|
'date' => 'date',
|
||||||
'end_date' => 'date',
|
'end_date' => 'date',
|
||||||
'extension_date' => 'date',
|
'extension_date' => 'date',
|
||||||
'skip' => 'int',
|
'skip' => 'int',
|
||||||
'automatch' => 'boolean',
|
'automatch' => 'boolean',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'name_encrypted' => 'boolean',
|
'name_encrypted' => 'boolean',
|
||||||
'match_encrypted' => 'boolean',
|
'match_encrypted' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable
|
protected $fillable
|
||||||
= [
|
= [
|
||||||
'name',
|
'name',
|
||||||
'match',
|
'match',
|
||||||
'amount_min',
|
'amount_min',
|
||||||
'user_id',
|
'user_id',
|
||||||
'user_group_id',
|
'user_group_id',
|
||||||
'amount_max',
|
'amount_max',
|
||||||
'date',
|
'date',
|
||||||
'repeat_freq',
|
'repeat_freq',
|
||||||
'skip',
|
'skip',
|
||||||
'automatch',
|
'automatch',
|
||||||
'active',
|
'active',
|
||||||
'transaction_currency_id',
|
'transaction_currency_id',
|
||||||
'end_date',
|
'end_date',
|
||||||
'extension_date',
|
'extension_date',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $hidden = ['amount_min_encrypted', 'amount_max_encrypted', 'name_encrypted', 'match_encrypted'];
|
protected $hidden = ['amount_min_encrypted', 'amount_max_encrypted', 'name_encrypted', 'match_encrypted'];
|
||||||
|
|
||||||
|
@ -97,12 +97,12 @@ class Budget extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'encrypted' => 'boolean',
|
'encrypted' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'name', 'active', 'order', 'user_group_id'];
|
protected $fillable = ['user_id', 'name', 'active', 'order', 'user_group_id'];
|
||||||
|
|
||||||
|
@ -74,18 +74,18 @@ class BudgetLimit extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'start_date' => 'date',
|
'start_date' => 'date',
|
||||||
'end_date' => 'date',
|
'end_date' => 'date',
|
||||||
'auto_budget' => 'boolean',
|
'auto_budget' => 'boolean',
|
||||||
];
|
];
|
||||||
protected $dispatchesEvents
|
protected $dispatchesEvents
|
||||||
= [
|
= [
|
||||||
'created' => Created::class,
|
'created' => Created::class,
|
||||||
'updated' => Updated::class,
|
'updated' => Updated::class,
|
||||||
'deleted' => Deleted::class,
|
'deleted' => Deleted::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['budget_id', 'start_date', 'end_date', 'amount', 'transaction_currency_id'];
|
protected $fillable = ['budget_id', 'start_date', 'end_date', 'amount', 'transaction_currency_id'];
|
||||||
|
|
||||||
|
@ -86,11 +86,11 @@ class Category extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'encrypted' => 'boolean',
|
'encrypted' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'user_group_id', 'name'];
|
protected $fillable = ['user_id', 'user_group_id', 'name'];
|
||||||
|
|
||||||
|
@ -62,10 +62,10 @@ class Configuration extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
/** @var string The table to store the data in */
|
/** @var string The table to store the data in */
|
||||||
protected $table = 'configuration';
|
protected $table = 'configuration';
|
||||||
|
@ -72,11 +72,11 @@ class LinkType extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'editable' => 'boolean',
|
'editable' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['name', 'inward', 'outward', 'editable'];
|
protected $fillable = ['name', 'inward', 'outward', 'editable'];
|
||||||
|
|
||||||
|
@ -71,13 +71,13 @@ class Location extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'zoomLevel' => 'int',
|
'zoomLevel' => 'int',
|
||||||
'latitude' => 'float',
|
'latitude' => 'float',
|
||||||
'longitude' => 'float',
|
'longitude' => 'float',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['locatable_id', 'locatable_type', 'latitude', 'longitude', 'zoom_level'];
|
protected $fillable = ['locatable_id', 'locatable_type', 'latitude', 'longitude', 'zoom_level'];
|
||||||
|
|
||||||
|
@ -69,10 +69,10 @@ class Note extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['title', 'text', 'noteable_id', 'noteable_type'];
|
protected $fillable = ['title', 'text', 'noteable_id', 'noteable_type'];
|
||||||
|
|
||||||
|
@ -92,15 +92,15 @@ class PiggyBank extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'startdate' => 'date',
|
'startdate' => 'date',
|
||||||
'targetdate' => 'date',
|
'targetdate' => 'date',
|
||||||
'order' => 'int',
|
'order' => 'int',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'encrypted' => 'boolean',
|
'encrypted' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['name', 'account_id', 'order', 'targetamount', 'startdate', 'targetdate', 'active'];
|
protected $fillable = ['name', 'account_id', 'order', 'targetamount', 'startdate', 'targetdate', 'active'];
|
||||||
|
|
||||||
|
@ -63,10 +63,10 @@ class PiggyBankEvent extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'date' => 'date',
|
'date' => 'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['piggy_bank_id', 'transaction_journal_id', 'date', 'amount'];
|
protected $fillable = ['piggy_bank_id', 'transaction_journal_id', 'date', 'amount'];
|
||||||
|
|
||||||
|
@ -64,11 +64,11 @@ class PiggyBankRepetition extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'startdate' => 'date',
|
'startdate' => 'date',
|
||||||
'targetdate' => 'date',
|
'targetdate' => 'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['piggy_bank_id', 'startdate', 'targetdate', 'currentamount'];
|
protected $fillable = ['piggy_bank_id', 'startdate', 'targetdate', 'currentamount'];
|
||||||
|
|
||||||
|
@ -63,10 +63,10 @@ class Preference extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'data' => 'array',
|
'data' => 'array',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'data', 'name'];
|
protected $fillable = ['user_id', 'data', 'name'];
|
||||||
|
|
||||||
|
@ -104,19 +104,19 @@ class Recurrence extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'title' => 'string',
|
'title' => 'string',
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'description' => 'string',
|
'description' => 'string',
|
||||||
'first_date' => 'date',
|
'first_date' => 'date',
|
||||||
'repeat_until' => 'date',
|
'repeat_until' => 'date',
|
||||||
'latest_date' => 'date',
|
'latest_date' => 'date',
|
||||||
'repetitions' => 'int',
|
'repetitions' => 'int',
|
||||||
'active' => 'bool',
|
'active' => 'bool',
|
||||||
'apply_rules' => 'bool',
|
'apply_rules' => 'bool',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable
|
protected $fillable
|
||||||
= ['user_id', 'transaction_type_id', 'title', 'description', 'first_date', 'repeat_until', 'latest_date', 'repetitions', 'apply_rules', 'active'];
|
= ['user_id', 'transaction_type_id', 'title', 'description', 'first_date', 'repeat_until', 'latest_date', 'repetitions', 'apply_rules', 'active'];
|
||||||
|
@ -67,12 +67,12 @@ class RecurrenceMeta extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'name' => 'string',
|
'name' => 'string',
|
||||||
'value' => 'string',
|
'value' => 'string',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['recurrence_id', 'name', 'value'];
|
protected $fillable = ['recurrence_id', 'name', 'value'];
|
||||||
|
|
||||||
|
@ -76,14 +76,14 @@ class RecurrenceRepetition extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'repetition_type' => 'string',
|
'repetition_type' => 'string',
|
||||||
'repetition_moment' => 'string',
|
'repetition_moment' => 'string',
|
||||||
'repetition_skip' => 'int',
|
'repetition_skip' => 'int',
|
||||||
'weekend' => 'int',
|
'weekend' => 'int',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['recurrence_id', 'weekend', 'repetition_type', 'repetition_moment', 'repetition_skip'];
|
protected $fillable = ['recurrence_id', 'weekend', 'repetition_type', 'repetition_moment', 'repetition_skip'];
|
||||||
|
|
||||||
|
@ -91,25 +91,25 @@ class RecurrenceTransaction extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'amount' => 'string',
|
'amount' => 'string',
|
||||||
'foreign_amount' => 'string',
|
'foreign_amount' => 'string',
|
||||||
'description' => 'string',
|
'description' => 'string',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable
|
protected $fillable
|
||||||
= [
|
= [
|
||||||
'recurrence_id',
|
'recurrence_id',
|
||||||
'transaction_currency_id',
|
'transaction_currency_id',
|
||||||
'foreign_currency_id',
|
'foreign_currency_id',
|
||||||
'source_id',
|
'source_id',
|
||||||
'destination_id',
|
'destination_id',
|
||||||
'amount',
|
'amount',
|
||||||
'foreign_amount',
|
'foreign_amount',
|
||||||
'description',
|
'description',
|
||||||
];
|
];
|
||||||
|
|
||||||
/** @var string The table to store the data in */
|
/** @var string The table to store the data in */
|
||||||
protected $table = 'recurrences_transactions';
|
protected $table = 'recurrences_transactions';
|
||||||
|
@ -67,12 +67,12 @@ class RecurrenceTransactionMeta extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'name' => 'string',
|
'name' => 'string',
|
||||||
'value' => 'string',
|
'value' => 'string',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['rt_id', 'name', 'value'];
|
protected $fillable = ['rt_id', 'name', 'value'];
|
||||||
|
|
||||||
|
@ -62,9 +62,9 @@ class Role extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['name', 'display_name', 'description'];
|
protected $fillable = ['name', 'display_name', 'description'];
|
||||||
|
|
||||||
|
@ -95,15 +95,15 @@ class Rule extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'order' => 'int',
|
'order' => 'int',
|
||||||
'stop_processing' => 'boolean',
|
'stop_processing' => 'boolean',
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'strict' => 'boolean',
|
'strict' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['rule_group_id', 'order', 'active', 'title', 'description', 'user_id', 'strict'];
|
protected $fillable = ['rule_group_id', 'order', 'active', 'title', 'description', 'user_id', 'strict'];
|
||||||
|
|
||||||
|
@ -66,12 +66,12 @@ class RuleAction extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'order' => 'int',
|
'order' => 'int',
|
||||||
'stop_processing' => 'boolean',
|
'stop_processing' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['rule_id', 'action_type', 'action_value', 'order', 'active', 'stop_processing'];
|
protected $fillable = ['rule_id', 'action_type', 'action_value', 'order', 'active', 'stop_processing'];
|
||||||
|
|
||||||
|
@ -85,13 +85,13 @@ class RuleGroup extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'stop_processing' => 'boolean',
|
'stop_processing' => 'boolean',
|
||||||
'order' => 'int',
|
'order' => 'int',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'user_group_id', 'stop_processing', 'order', 'title', 'description', 'active'];
|
protected $fillable = ['user_id', 'user_group_id', 'stop_processing', 'order', 'title', 'description', 'active'];
|
||||||
|
|
||||||
|
@ -66,12 +66,12 @@ class RuleTrigger extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'active' => 'boolean',
|
'active' => 'boolean',
|
||||||
'order' => 'int',
|
'order' => 'int',
|
||||||
'stop_processing' => 'boolean',
|
'stop_processing' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['rule_id', 'trigger_type', 'trigger_value', 'order', 'active', 'stop_processing'];
|
protected $fillable = ['rule_id', 'trigger_type', 'trigger_value', 'order', 'active', 'stop_processing'];
|
||||||
|
|
||||||
|
@ -93,14 +93,14 @@ class Tag extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'date' => 'date',
|
'date' => 'date',
|
||||||
'zoomLevel' => 'int',
|
'zoomLevel' => 'int',
|
||||||
'latitude' => 'float',
|
'latitude' => 'float',
|
||||||
'longitude' => 'float',
|
'longitude' => 'float',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'user_group_id', 'tag', 'date', 'description', 'tagMode'];
|
protected $fillable = ['user_id', 'user_group_id', 'tag', 'date', 'description', 'tagMode'];
|
||||||
|
|
||||||
|
@ -99,27 +99,27 @@ class Transaction extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'identifier' => 'int',
|
'identifier' => 'int',
|
||||||
'encrypted' => 'boolean', // model does not have these fields though
|
'encrypted' => 'boolean', // model does not have these fields though
|
||||||
'bill_name_encrypted' => 'boolean',
|
'bill_name_encrypted' => 'boolean',
|
||||||
'reconciled' => 'boolean',
|
'reconciled' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable
|
protected $fillable
|
||||||
= [
|
= [
|
||||||
'account_id',
|
'account_id',
|
||||||
'transaction_journal_id',
|
'transaction_journal_id',
|
||||||
'description',
|
'description',
|
||||||
'amount',
|
'amount',
|
||||||
'identifier',
|
'identifier',
|
||||||
'transaction_currency_id',
|
'transaction_currency_id',
|
||||||
'foreign_currency_id',
|
'foreign_currency_id',
|
||||||
'foreign_amount',
|
'foreign_amount',
|
||||||
'reconciled',
|
'reconciled',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $hidden = ['encrypted'];
|
protected $hidden = ['encrypted'];
|
||||||
|
|
||||||
|
@ -89,12 +89,12 @@ class TransactionCurrency extends Model
|
|||||||
public ?bool $userGroupEnabled;
|
public ?bool $userGroupEnabled;
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'decimal_places' => 'int',
|
'decimal_places' => 'int',
|
||||||
'enabled' => 'bool',
|
'enabled' => 'bool',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['name', 'code', 'symbol', 'decimal_places', 'enabled'];
|
protected $fillable = ['name', 'code', 'symbol', 'decimal_places', 'enabled'];
|
||||||
|
|
||||||
|
@ -78,13 +78,13 @@ class TransactionGroup extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'id' => 'integer',
|
'id' => 'integer',
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'title' => 'string',
|
'title' => 'string',
|
||||||
'date' => 'datetime',
|
'date' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['user_id', 'user_group_id', 'title'];
|
protected $fillable = ['user_id', 'user_group_id', 'title'];
|
||||||
|
|
||||||
|
@ -138,32 +138,32 @@ class TransactionJournal extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'date' => 'datetime',
|
'date' => 'datetime',
|
||||||
'interest_date' => 'date',
|
'interest_date' => 'date',
|
||||||
'book_date' => 'date',
|
'book_date' => 'date',
|
||||||
'process_date' => 'date',
|
'process_date' => 'date',
|
||||||
'order' => 'int',
|
'order' => 'int',
|
||||||
'tag_count' => 'int',
|
'tag_count' => 'int',
|
||||||
'encrypted' => 'boolean',
|
'encrypted' => 'boolean',
|
||||||
'completed' => 'boolean',
|
'completed' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable
|
protected $fillable
|
||||||
= [
|
= [
|
||||||
'user_id',
|
'user_id',
|
||||||
'user_group_id',
|
'user_group_id',
|
||||||
'transaction_type_id',
|
'transaction_type_id',
|
||||||
'bill_id',
|
'bill_id',
|
||||||
'tag_count',
|
'tag_count',
|
||||||
'transaction_currency_id',
|
'transaction_currency_id',
|
||||||
'description',
|
'description',
|
||||||
'completed',
|
'completed',
|
||||||
'order',
|
'order',
|
||||||
'date',
|
'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $hidden = ['encrypted'];
|
protected $hidden = ['encrypted'];
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@ class TransactionJournalLink extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
/** @var string The table to store the data in */
|
/** @var string The table to store the data in */
|
||||||
protected $table = 'journal_links';
|
protected $table = 'journal_links';
|
||||||
|
@ -69,10 +69,10 @@ class TransactionJournalMeta extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = ['transaction_journal_id', 'name', 'data', 'hash'];
|
protected $fillable = ['transaction_journal_id', 'name', 'data', 'hash'];
|
||||||
|
|
||||||
|
@ -73,10 +73,10 @@ class TransactionType extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
];
|
];
|
||||||
protected $fillable = ['type'];
|
protected $fillable = ['type'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,9 +75,9 @@ class NoCategoryRepository implements NoCategoryRepositoryInterface
|
|||||||
$journalId = (int)$journal['transaction_journal_id'];
|
$journalId = (int)$journal['transaction_journal_id'];
|
||||||
$array[$currencyId]['categories'][0]['transaction_journals'][$journalId]
|
$array[$currencyId]['categories'][0]['transaction_journals'][$journalId]
|
||||||
= [
|
= [
|
||||||
'amount' => app('steam')->negative($journal['amount']),
|
'amount' => app('steam')->negative($journal['amount']),
|
||||||
'date' => $journal['date'],
|
'date' => $journal['date'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $array;
|
return $array;
|
||||||
@ -128,9 +128,9 @@ class NoCategoryRepository implements NoCategoryRepositoryInterface
|
|||||||
$journalId = (int)$journal['transaction_journal_id'];
|
$journalId = (int)$journal['transaction_journal_id'];
|
||||||
$array[$currencyId]['categories'][0]['transaction_journals'][$journalId]
|
$array[$currencyId]['categories'][0]['transaction_journals'][$journalId]
|
||||||
= [
|
= [
|
||||||
'amount' => app('steam')->positive($journal['amount']),
|
'amount' => app('steam')->positive($journal['amount']),
|
||||||
'date' => $journal['date'],
|
'date' => $journal['date'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $array;
|
return $array;
|
||||||
|
@ -146,10 +146,10 @@ class UniqueIban implements ValidationRule
|
|||||||
}
|
}
|
||||||
$query
|
$query
|
||||||
= auth()->user()
|
= auth()->user()
|
||||||
->accounts()
|
->accounts()
|
||||||
->leftJoin('account_types', 'account_types.id', '=', 'accounts.account_type_id')
|
->leftJoin('account_types', 'account_types.id', '=', 'accounts.account_type_id')
|
||||||
->where('accounts.iban', $iban)
|
->where('accounts.iban', $iban)
|
||||||
->whereIn('account_types.type', $typesArray)
|
->whereIn('account_types.type', $typesArray)
|
||||||
;
|
;
|
||||||
|
|
||||||
if (null !== $this->account) {
|
if (null !== $this->account) {
|
||||||
|
@ -452,13 +452,13 @@ trait PeriodOverview
|
|||||||
}
|
}
|
||||||
$entries[]
|
$entries[]
|
||||||
= [
|
= [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'route' => route('transactions.index', [$transactionType, $currentDate['start']->format('Y-m-d'), $currentDate['end']->format('Y-m-d')]),
|
'route' => route('transactions.index', [$transactionType, $currentDate['start']->format('Y-m-d'), $currentDate['end']->format('Y-m-d')]),
|
||||||
'total_transactions' => count($spent) + count($earned) + count($transferred),
|
'total_transactions' => count($spent) + count($earned) + count($transferred),
|
||||||
'spent' => $this->groupByCurrency($spent),
|
'spent' => $this->groupByCurrency($spent),
|
||||||
'earned' => $this->groupByCurrency($earned),
|
'earned' => $this->groupByCurrency($earned),
|
||||||
'transferred' => $this->groupByCurrency($transferred),
|
'transferred' => $this->groupByCurrency($transferred),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $entries;
|
return $entries;
|
||||||
|
@ -250,16 +250,16 @@ class BudgetReportGenerator
|
|||||||
// make sum information:
|
// make sum information:
|
||||||
$this->report['sums'][$currencyId]
|
$this->report['sums'][$currencyId]
|
||||||
??= [
|
??= [
|
||||||
'budgeted' => '0',
|
'budgeted' => '0',
|
||||||
'spent' => '0',
|
'spent' => '0',
|
||||||
'left' => '0',
|
'left' => '0',
|
||||||
'overspent' => '0',
|
'overspent' => '0',
|
||||||
'currency_id' => $currencyId,
|
'currency_id' => $currencyId,
|
||||||
'currency_code' => $limitCurrency->code,
|
'currency_code' => $limitCurrency->code,
|
||||||
'currency_name' => $limitCurrency->name,
|
'currency_name' => $limitCurrency->name,
|
||||||
'currency_symbol' => $limitCurrency->symbol,
|
'currency_symbol' => $limitCurrency->symbol,
|
||||||
'currency_decimal_places' => $limitCurrency->decimal_places,
|
'currency_decimal_places' => $limitCurrency->decimal_places,
|
||||||
];
|
];
|
||||||
$this->report['sums'][$currencyId]['budgeted'] = bcadd($this->report['sums'][$currencyId]['budgeted'], $limit->amount);
|
$this->report['sums'][$currencyId]['budgeted'] = bcadd($this->report['sums'][$currencyId]['budgeted'], $limit->amount);
|
||||||
$this->report['sums'][$currencyId]['spent'] = bcadd($this->report['sums'][$currencyId]['spent'], $spent);
|
$this->report['sums'][$currencyId]['spent'] = bcadd($this->report['sums'][$currencyId]['spent'], $spent);
|
||||||
$this->report['sums'][$currencyId]['left'] = bcadd($this->report['sums'][$currencyId]['left'], bcadd($limit->amount, $spent));
|
$this->report['sums'][$currencyId]['left'] = bcadd($this->report['sums'][$currencyId]['left'], bcadd($limit->amount, $spent));
|
||||||
|
@ -145,12 +145,12 @@ return [
|
|||||||
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
|
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
|
||||||
'Twig' => TwigBridge\Facade\Twig::class,
|
'Twig' => TwigBridge\Facade\Twig::class,
|
||||||
|
|
||||||
'Arr' => Illuminate\Support\Arr::class,
|
'Arr' => Illuminate\Support\Arr::class,
|
||||||
'Http' => Illuminate\Support\Facades\Http::class,
|
'Http' => Illuminate\Support\Facades\Http::class,
|
||||||
'Str' => Illuminate\Support\Str::class,
|
'Str' => Illuminate\Support\Str::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
'asset_url' => env('ASSET_URL', null),
|
'asset_url' => env('ASSET_URL', null),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -163,5 +163,5 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'faker_locale' => 'en_US',
|
'faker_locale' => 'en_US',
|
||||||
];
|
];
|
||||||
|
@ -37,12 +37,12 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'defaults' => [
|
'defaults' => [
|
||||||
'guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'),
|
'guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'),
|
||||||
'passwords' => 'users',
|
'passwords' => 'users',
|
||||||
],
|
],
|
||||||
'guard_header' => envNonEmpty('AUTHENTICATION_GUARD_HEADER', 'REMOTE_USER'),
|
'guard_header' => envNonEmpty('AUTHENTICATION_GUARD_HEADER', 'REMOTE_USER'),
|
||||||
'guard_email' => envNonEmpty('AUTHENTICATION_GUARD_EMAIL', null),
|
'guard_email' => envNonEmpty('AUTHENTICATION_GUARD_EMAIL', null),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -61,7 +61,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'guards' => [
|
'guards' => [
|
||||||
'web' => [
|
'web' => [
|
||||||
'driver' => 'session',
|
'driver' => 'session',
|
||||||
'provider' => 'users',
|
'provider' => 'users',
|
||||||
@ -93,7 +93,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'providers' => [
|
'providers' => [
|
||||||
'users' => [
|
'users' => [
|
||||||
'driver' => 'eloquent',
|
'driver' => 'eloquent',
|
||||||
'model' => FireflyIII\User::class,
|
'model' => FireflyIII\User::class,
|
||||||
@ -119,7 +119,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'passwords' => [
|
'passwords' => [
|
||||||
'users' => [
|
'users' => [
|
||||||
'provider' => 'users',
|
'provider' => 'users',
|
||||||
'table' => 'password_resets',
|
'table' => 'password_resets',
|
||||||
|
@ -46,7 +46,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'view' => 'partials/layout/breadcrumbs',
|
'view' => 'partials/layout/breadcrumbs',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -35,7 +35,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => env('BROADCAST_DRIVER', 'null'),
|
'default' => env('BROADCAST_DRIVER', 'null'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -67,21 +67,21 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'ably' => [
|
'ably' => [
|
||||||
'driver' => 'ably',
|
'driver' => 'ably',
|
||||||
'key' => env('ABLY_KEY'),
|
'key' => env('ABLY_KEY'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'driver' => 'redis',
|
'driver' => 'redis',
|
||||||
'connection' => 'default',
|
'connection' => 'default',
|
||||||
],
|
],
|
||||||
|
|
||||||
'log' => [
|
'log' => [
|
||||||
'driver' => 'log',
|
'driver' => 'log',
|
||||||
],
|
],
|
||||||
|
|
||||||
'null' => [
|
'null' => [
|
||||||
'driver' => 'null',
|
'driver' => 'null',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -48,23 +48,23 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'stores' => [
|
'stores' => [
|
||||||
'apc' => [
|
'apc' => [
|
||||||
'driver' => 'apc',
|
'driver' => 'apc',
|
||||||
],
|
],
|
||||||
|
|
||||||
'array' => [
|
'array' => [
|
||||||
'driver' => 'array',
|
'driver' => 'array',
|
||||||
'serialize' => false,
|
'serialize' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
'database' => [
|
'database' => [
|
||||||
'driver' => 'database',
|
'driver' => 'database',
|
||||||
'table' => 'cache',
|
'table' => 'cache',
|
||||||
'connection' => null,
|
'connection' => null,
|
||||||
],
|
],
|
||||||
|
|
||||||
'file' => [
|
'file' => [
|
||||||
'driver' => 'file',
|
'driver' => 'file',
|
||||||
'path' => storage_path('framework/cache/data'),
|
'path' => storage_path('framework/cache/data'),
|
||||||
],
|
],
|
||||||
@ -88,11 +88,11 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'driver' => 'redis',
|
'driver' => 'redis',
|
||||||
'connection' => 'default',
|
'connection' => 'default',
|
||||||
],
|
],
|
||||||
'dynamodb' => [
|
'dynamodb' => [
|
||||||
'driver' => 'dynamodb',
|
'driver' => 'dynamodb',
|
||||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||||
@ -113,5 +113,5 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'prefix' => env('CACHE_PREFIX', 'firefly'),
|
'prefix' => env('CACHE_PREFIX', 'firefly'),
|
||||||
];
|
];
|
||||||
|
@ -36,19 +36,19 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
||||||
|
|
||||||
'allowed_methods' => ['*'],
|
'allowed_methods' => ['*'],
|
||||||
|
|
||||||
'allowed_origins' => ['*'],
|
'allowed_origins' => ['*'],
|
||||||
|
|
||||||
'allowed_origins_patterns' => ['*'],
|
'allowed_origins_patterns' => ['*'],
|
||||||
|
|
||||||
'allowed_headers' => ['*'],
|
'allowed_headers' => ['*'],
|
||||||
|
|
||||||
'exposed_headers' => [],
|
'exposed_headers' => [],
|
||||||
|
|
||||||
'max_age' => 0,
|
'max_age' => 0,
|
||||||
|
|
||||||
'supports_credentials' => false,
|
'supports_credentials' => false,
|
||||||
];
|
];
|
||||||
|
@ -23,12 +23,12 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
$databaseUrl = getenv('DATABASE_URL');
|
$databaseUrl = getenv('DATABASE_URL');
|
||||||
$host = '';
|
$host = '';
|
||||||
$username = '';
|
$username = '';
|
||||||
$password = '';
|
$password = '';
|
||||||
$database = '';
|
$database = '';
|
||||||
$port = '';
|
$port = '';
|
||||||
|
|
||||||
if (false !== $databaseUrl) {
|
if (false !== $databaseUrl) {
|
||||||
$options = parse_url($databaseUrl);
|
$options = parse_url($databaseUrl);
|
||||||
@ -47,8 +47,8 @@ $mysql_ssl_key = envNonEmpty('MYSQL_SSL_KEY', null);
|
|||||||
$mysql_ssl_ciphers = envNonEmpty('MYSQL_SSL_CIPHER', null);
|
$mysql_ssl_ciphers = envNonEmpty('MYSQL_SSL_CIPHER', null);
|
||||||
$mysql_ssl_verify = envNonEmpty('MYSQL_SSL_VERIFY_SERVER_CERT', null);
|
$mysql_ssl_verify = envNonEmpty('MYSQL_SSL_VERIFY_SERVER_CERT', null);
|
||||||
|
|
||||||
$mySqlSSLOptions = [];
|
$mySqlSSLOptions = [];
|
||||||
$useSSL = envNonEmpty('MYSQL_USE_SSL', false);
|
$useSSL = envNonEmpty('MYSQL_USE_SSL', false);
|
||||||
if (false !== $useSSL && null !== $useSSL && '' !== $useSSL) {
|
if (false !== $useSSL && null !== $useSSL && '' !== $useSSL) {
|
||||||
if (null !== $mysql_ssl_ca_dir) {
|
if (null !== $mysql_ssl_ca_dir) {
|
||||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CAPATH] = $mysql_ssl_ca_dir;
|
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CAPATH] = $mysql_ssl_ca_dir;
|
||||||
|
@ -34,8 +34,8 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'enabled' => env('DEBUGBAR_ENABLED', null),
|
'enabled' => env('DEBUGBAR_ENABLED', null),
|
||||||
'except' => [
|
'except' => [
|
||||||
'telescope*',
|
'telescope*',
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ return [
|
|||||||
| can also be used. For PDO, run the package migrations first.
|
| can also be used. For PDO, run the package migrations first.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'storage' => [
|
'storage' => [
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'driver' => 'file', // redis, file, pdo, custom
|
'driver' => 'file', // redis, file, pdo, custom
|
||||||
'path' => storage_path('debugbar'), // For file driver
|
'path' => storage_path('debugbar'), // For file driver
|
||||||
@ -120,7 +120,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'collectors' => [
|
'collectors' => [
|
||||||
'phpinfo' => true, // Php version
|
'phpinfo' => true, // Php version
|
||||||
'messages' => true, // Messages
|
'messages' => true, // Messages
|
||||||
'time' => true, // Time Datalogger
|
'time' => true, // Time Datalogger
|
||||||
@ -154,7 +154,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'options' => [
|
'options' => [
|
||||||
'auth' => [
|
'auth' => [
|
||||||
'show_name' => true, // Also show the users name/email in the debugbar
|
'show_name' => true, // Also show the users name/email in the debugbar
|
||||||
],
|
],
|
||||||
@ -197,7 +197,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'inject' => true,
|
'inject' => true,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -209,7 +209,7 @@ return [
|
|||||||
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'route_prefix' => '_debugbar',
|
'route_prefix' => '_debugbar',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -219,5 +219,5 @@ return [
|
|||||||
| By default DebugBar route served from the same domain that request served.
|
| By default DebugBar route served from the same domain that request served.
|
||||||
| To override default domain, specify it as a non-empty value.
|
| To override default domain, specify it as a non-empty value.
|
||||||
*/
|
*/
|
||||||
'route_domain' => null,
|
'route_domain' => null,
|
||||||
];
|
];
|
||||||
|
@ -51,7 +51,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'disks' => [
|
'disks' => [
|
||||||
'local' => [
|
'local' => [
|
||||||
'driver' => 'local',
|
'driver' => 'local',
|
||||||
'root' => storage_path('app'),
|
'root' => storage_path('app'),
|
||||||
@ -85,7 +85,7 @@ return [
|
|||||||
'root' => base_path('resources'),
|
'root' => base_path('resources'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'public' => [
|
'public' => [
|
||||||
'driver' => 'local',
|
'driver' => 'local',
|
||||||
'root' => storage_path('app/public'),
|
'root' => storage_path('app/public'),
|
||||||
'url' => env('APP_URL').'/storage',
|
'url' => env('APP_URL').'/storage',
|
||||||
|
@ -431,7 +431,7 @@ return [
|
|||||||
'transfers' => 'fa-exchange',
|
'transfers' => 'fa-exchange',
|
||||||
],
|
],
|
||||||
|
|
||||||
'bindables' => [
|
'bindables' => [
|
||||||
// models
|
// models
|
||||||
'account' => Account::class,
|
'account' => Account::class,
|
||||||
'attachment' => Attachment::class,
|
'attachment' => Attachment::class,
|
||||||
@ -488,7 +488,7 @@ return [
|
|||||||
'userGroupBill' => UserGroupBill::class,
|
'userGroupBill' => UserGroupBill::class,
|
||||||
'userGroup' => UserGroup::class,
|
'userGroup' => UserGroup::class,
|
||||||
],
|
],
|
||||||
'rule-actions' => [
|
'rule-actions' => [
|
||||||
'set_category' => SetCategory::class,
|
'set_category' => SetCategory::class,
|
||||||
'clear_category' => ClearCategory::class,
|
'clear_category' => ClearCategory::class,
|
||||||
'set_budget' => SetBudget::class,
|
'set_budget' => SetBudget::class,
|
||||||
@ -519,7 +519,7 @@ return [
|
|||||||
'set_source_to_cash' => SetSourceToCashAccount::class,
|
'set_source_to_cash' => SetSourceToCashAccount::class,
|
||||||
'set_destination_to_cash' => SetDestinationToCashAccount::class,
|
'set_destination_to_cash' => SetDestinationToCashAccount::class,
|
||||||
],
|
],
|
||||||
'context-rule-actions' => [
|
'context-rule-actions' => [
|
||||||
'set_category',
|
'set_category',
|
||||||
'set_budget',
|
'set_budget',
|
||||||
'add_tag',
|
'add_tag',
|
||||||
@ -538,13 +538,13 @@ return [
|
|||||||
'convert_transfer',
|
'convert_transfer',
|
||||||
],
|
],
|
||||||
|
|
||||||
'test-triggers' => [
|
'test-triggers' => [
|
||||||
'limit' => 10,
|
'limit' => 10,
|
||||||
'range' => 200,
|
'range' => 200,
|
||||||
],
|
],
|
||||||
|
|
||||||
// expected source types for each transaction type, in order of preference.
|
// expected source types for each transaction type, in order of preference.
|
||||||
'expected_source_types' => [
|
'expected_source_types' => [
|
||||||
'source' => [
|
'source' => [
|
||||||
TransactionTypeModel::WITHDRAWAL => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],
|
TransactionTypeModel::WITHDRAWAL => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],
|
||||||
TransactionTypeEnum::DEPOSIT->value => [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::REVENUE, AccountType::CASH],
|
TransactionTypeEnum::DEPOSIT->value => [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::REVENUE, AccountType::CASH],
|
||||||
@ -589,7 +589,7 @@ return [
|
|||||||
TransactionTypeModel::LIABILITY_CREDIT => [AccountType::LIABILITY_CREDIT, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],
|
TransactionTypeModel::LIABILITY_CREDIT => [AccountType::LIABILITY_CREDIT, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'allowed_opposing_types' => [
|
'allowed_opposing_types' => [
|
||||||
'source' => [
|
'source' => [
|
||||||
AccountType::ASSET => [
|
AccountType::ASSET => [
|
||||||
AccountType::ASSET,
|
AccountType::ASSET,
|
||||||
@ -679,7 +679,7 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
// depending on the account type, return the allowed transaction types:
|
// depending on the account type, return the allowed transaction types:
|
||||||
'allowed_transaction_types' => [
|
'allowed_transaction_types' => [
|
||||||
'source' => [
|
'source' => [
|
||||||
AccountType::ASSET => [
|
AccountType::ASSET => [
|
||||||
TransactionTypeModel::WITHDRAWAL,
|
TransactionTypeModel::WITHDRAWAL,
|
||||||
@ -748,7 +748,7 @@ return [
|
|||||||
],
|
],
|
||||||
|
|
||||||
// having the source + dest will tell you the transaction type.
|
// having the source + dest will tell you the transaction type.
|
||||||
'account_to_transaction' => [
|
'account_to_transaction' => [
|
||||||
AccountType::ASSET => [
|
AccountType::ASSET => [
|
||||||
AccountType::ASSET => TransactionTypeModel::TRANSFER,
|
AccountType::ASSET => TransactionTypeModel::TRANSFER,
|
||||||
AccountType::CASH => TransactionTypeModel::WITHDRAWAL,
|
AccountType::CASH => TransactionTypeModel::WITHDRAWAL,
|
||||||
@ -813,7 +813,7 @@ return [
|
|||||||
],
|
],
|
||||||
|
|
||||||
// allowed source -> destination accounts.
|
// allowed source -> destination accounts.
|
||||||
'source_dests' => [
|
'source_dests' => [
|
||||||
TransactionTypeModel::WITHDRAWAL => [
|
TransactionTypeModel::WITHDRAWAL => [
|
||||||
AccountType::ASSET => [AccountType::EXPENSE, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::CASH],
|
AccountType::ASSET => [AccountType::EXPENSE, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::CASH],
|
||||||
AccountType::LOAN => [AccountType::EXPENSE, AccountType::CASH],
|
AccountType::LOAN => [AccountType::EXPENSE, AccountType::CASH],
|
||||||
@ -852,7 +852,7 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
// if you add fields to this array, don't forget to update the export routine (ExportDataGenerator).
|
// if you add fields to this array, don't forget to update the export routine (ExportDataGenerator).
|
||||||
'journal_meta_fields' => [
|
'journal_meta_fields' => [
|
||||||
// sepa
|
// sepa
|
||||||
'sepa_cc',
|
'sepa_cc',
|
||||||
'sepa_ct_op',
|
'sepa_ct_op',
|
||||||
@ -886,28 +886,28 @@ return [
|
|||||||
'recurrence_count',
|
'recurrence_count',
|
||||||
'recurrence_date',
|
'recurrence_date',
|
||||||
],
|
],
|
||||||
'webhooks' => [
|
'webhooks' => [
|
||||||
'max_attempts' => env('WEBHOOK_MAX_ATTEMPTS', 3),
|
'max_attempts' => env('WEBHOOK_MAX_ATTEMPTS', 3),
|
||||||
],
|
],
|
||||||
'can_have_virtual_amounts' => [AccountType::ASSET],
|
'can_have_virtual_amounts' => [AccountType::ASSET],
|
||||||
'can_have_opening_balance' => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],
|
'can_have_opening_balance' => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],
|
||||||
'dynamic_creation_allowed' => [
|
'dynamic_creation_allowed' => [
|
||||||
AccountType::EXPENSE,
|
AccountType::EXPENSE,
|
||||||
AccountType::REVENUE,
|
AccountType::REVENUE,
|
||||||
AccountType::INITIAL_BALANCE,
|
AccountType::INITIAL_BALANCE,
|
||||||
AccountType::RECONCILIATION,
|
AccountType::RECONCILIATION,
|
||||||
AccountType::LIABILITY_CREDIT,
|
AccountType::LIABILITY_CREDIT,
|
||||||
],
|
],
|
||||||
'valid_asset_fields' => ['account_role', 'account_number', 'currency_id', 'BIC', 'include_net_worth'],
|
'valid_asset_fields' => ['account_role', 'account_number', 'currency_id', 'BIC', 'include_net_worth'],
|
||||||
'valid_cc_fields' => ['account_role', 'cc_monthly_payment_date', 'cc_type', 'account_number', 'currency_id', 'BIC', 'include_net_worth'],
|
'valid_cc_fields' => ['account_role', 'cc_monthly_payment_date', 'cc_type', 'account_number', 'currency_id', 'BIC', 'include_net_worth'],
|
||||||
'valid_account_fields' => ['account_number', 'currency_id', 'BIC', 'interest', 'interest_period', 'include_net_worth', 'liability_direction'],
|
'valid_account_fields' => ['account_number', 'currency_id', 'BIC', 'interest', 'interest_period', 'include_net_worth', 'liability_direction'],
|
||||||
|
|
||||||
// dynamic date ranges are as follows:
|
// dynamic date ranges are as follows:
|
||||||
'dynamic_date_ranges' => ['last7', 'last30', 'last90', 'last365', 'MTD', 'QTD', 'YTD'],
|
'dynamic_date_ranges' => ['last7', 'last30', 'last90', 'last365', 'MTD', 'QTD', 'YTD'],
|
||||||
|
|
||||||
// only used in v1
|
// only used in v1
|
||||||
'allowed_sort_parameters' => ['order', 'name', 'iban'],
|
'allowed_sort_parameters' => ['order', 'name', 'iban'],
|
||||||
|
|
||||||
// preselected account lists possibilities:
|
// preselected account lists possibilities:
|
||||||
'preselected_accounts' => ['all', 'assets', 'liabilities'],
|
'preselected_accounts' => ['all', 'assets', 'liabilities'],
|
||||||
];
|
];
|
||||||
|
@ -26,22 +26,22 @@ use PragmaRX\Google2FALaravel\Support\Constants;
|
|||||||
return [
|
return [
|
||||||
// Auth container binding
|
// Auth container binding
|
||||||
|
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lifetime in minutes.
|
* Lifetime in minutes.
|
||||||
* In case you need your users to be asked for a new one time passwords from time to time.
|
* In case you need your users to be asked for a new one time passwords from time to time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'lifetime' => 0, // 0 = eternal
|
'lifetime' => 0, // 0 = eternal
|
||||||
|
|
||||||
// Renew lifetime at every new request.
|
// Renew lifetime at every new request.
|
||||||
|
|
||||||
'keep_alive' => true,
|
'keep_alive' => true,
|
||||||
|
|
||||||
// Auth container binding
|
// Auth container binding
|
||||||
|
|
||||||
'auth' => 'auth',
|
'auth' => 'auth',
|
||||||
|
|
||||||
// 2FA verified session var
|
// 2FA verified session var
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ return [
|
|||||||
// Throw exceptions or just fire events?
|
// Throw exceptions or just fire events?
|
||||||
'throw_exceptions' => true,
|
'throw_exceptions' => true,
|
||||||
|
|
||||||
'store_in_cookie' => true,
|
'store_in_cookie' => true,
|
||||||
|
|
||||||
'qrcode_image_backend' => Constants::QRCODE_IMAGE_BACKEND_SVG,
|
'qrcode_image_backend' => Constants::QRCODE_IMAGE_BACKEND_SVG,
|
||||||
];
|
];
|
||||||
|
@ -64,7 +64,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'argon' => [
|
'argon' => [
|
||||||
'memory' => 65536,
|
'memory' => 65536,
|
||||||
'threads' => 1,
|
'threads' => 1,
|
||||||
'time' => 4,
|
'time' => 4,
|
||||||
|
@ -31,10 +31,10 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'filename' => '_ide_helper',
|
'filename' => '_ide_helper',
|
||||||
'format' => 'php',
|
'format' => 'php',
|
||||||
|
|
||||||
'meta_filename' => '.phpstorm.meta.php',
|
'meta_filename' => '.phpstorm.meta.php',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -45,7 +45,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'include_fluent' => true,
|
'include_fluent' => true,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -56,7 +56,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'write_model_magic_where' => true,
|
'write_model_magic_where' => true,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -83,9 +83,9 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'include_helpers' => false,
|
'include_helpers' => false,
|
||||||
|
|
||||||
'helper_files' => [
|
'helper_files' => [
|
||||||
base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
|
base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'model_locations' => [
|
'model_locations' => [
|
||||||
'app',
|
'app',
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -112,12 +112,12 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'extra' => [
|
'extra' => [
|
||||||
'Eloquent' => ['Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'],
|
'Eloquent' => ['Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'],
|
||||||
'Session' => ['Illuminate\Session\Store'],
|
'Session' => ['Illuminate\Session\Store'],
|
||||||
],
|
],
|
||||||
|
|
||||||
'magic' => [
|
'magic' => [
|
||||||
'Log' => [
|
'Log' => [
|
||||||
'debug' => 'Monolog\Logger::addDebug',
|
'debug' => 'Monolog\Logger::addDebug',
|
||||||
'info' => 'Monolog\Logger::addInfo',
|
'info' => 'Monolog\Logger::addInfo',
|
||||||
|
@ -25,7 +25,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
// index
|
// index
|
||||||
'index' => [
|
'index' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'accounts-chart' => ['element' => '#accounts-chart'],
|
'accounts-chart' => ['element' => '#accounts-chart'],
|
||||||
'box_out_holder' => ['element' => '#box_out_holder'],
|
'box_out_holder' => ['element' => '#box_out_holder'],
|
||||||
@ -35,11 +35,11 @@ return [
|
|||||||
'outro' => [],
|
'outro' => [],
|
||||||
],
|
],
|
||||||
// accounts: create
|
// accounts: create
|
||||||
'accounts_create' => [
|
'accounts_create' => [
|
||||||
'iban' => ['element' => '#ffInput_iban'],
|
'iban' => ['element' => '#ffInput_iban'],
|
||||||
],
|
],
|
||||||
// transactions: create
|
// transactions: create
|
||||||
'transactions_create' => [
|
'transactions_create' => [
|
||||||
'basic_info' => ['element' => '#transaction-info', 'position' => 'right'],
|
'basic_info' => ['element' => '#transaction-info', 'position' => 'right'],
|
||||||
'amount_info' => ['element' => '#amount-info', 'position' => 'bottom'],
|
'amount_info' => ['element' => '#amount-info', 'position' => 'bottom'],
|
||||||
'optional_info' => ['element' => '#optional-info', 'position' => 'left'],
|
'optional_info' => ['element' => '#optional-info', 'position' => 'left'],
|
||||||
@ -49,21 +49,21 @@ return [
|
|||||||
'transactions_create_withdrawal' => [
|
'transactions_create_withdrawal' => [
|
||||||
],
|
],
|
||||||
|
|
||||||
'transactions_create_deposit' => [
|
'transactions_create_deposit' => [
|
||||||
],
|
],
|
||||||
|
|
||||||
'transactions_create_transfer' => [
|
'transactions_create_transfer' => [
|
||||||
],
|
],
|
||||||
|
|
||||||
// extra text for asset account creation.
|
// extra text for asset account creation.
|
||||||
'accounts_create_asset' => [
|
'accounts_create_asset' => [
|
||||||
'opening_balance' => ['element' => '#ffInput_opening_balance'],
|
'opening_balance' => ['element' => '#ffInput_opening_balance'],
|
||||||
'currency' => ['element' => '#ffInput_currency_id'],
|
'currency' => ['element' => '#ffInput_currency_id'],
|
||||||
'virtual' => ['element' => '#ffInput_virtual_balance'],
|
'virtual' => ['element' => '#ffInput_virtual_balance'],
|
||||||
],
|
],
|
||||||
|
|
||||||
// budgets: index
|
// budgets: index
|
||||||
'budgets_index' => [
|
'budgets_index' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'set_budget' => ['element' => '#availableBar'],
|
'set_budget' => ['element' => '#availableBar'],
|
||||||
'see_expenses_bar' => ['element' => '#spentBar'],
|
'see_expenses_bar' => ['element' => '#spentBar'],
|
||||||
@ -73,59 +73,59 @@ return [
|
|||||||
'outro' => [],
|
'outro' => [],
|
||||||
],
|
],
|
||||||
// reports: index, default report, audit, budget, cat, tag
|
// reports: index, default report, audit, budget, cat, tag
|
||||||
'reports_index' => [
|
'reports_index' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'inputReportType' => ['element' => '#inputReportType'],
|
'inputReportType' => ['element' => '#inputReportType'],
|
||||||
'inputAccountsSelect' => ['element' => '#inputAccountsSelect'],
|
'inputAccountsSelect' => ['element' => '#inputAccountsSelect'],
|
||||||
'inputDateRange' => ['element' => '#inputDateRange'],
|
'inputDateRange' => ['element' => '#inputDateRange'],
|
||||||
'extra-options-box' => ['element' => '#extra-options-box', 'position' => 'top'],
|
'extra-options-box' => ['element' => '#extra-options-box', 'position' => 'top'],
|
||||||
],
|
],
|
||||||
'reports_report_default' => [
|
'reports_report_default' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
],
|
],
|
||||||
'reports_report_audit' => [
|
'reports_report_audit' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'optionsBox' => ['element' => '#optionsBox'],
|
'optionsBox' => ['element' => '#optionsBox'],
|
||||||
],
|
],
|
||||||
'reports_report_category' => [
|
'reports_report_category' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'pieCharts' => ['element' => '#pieCharts'],
|
'pieCharts' => ['element' => '#pieCharts'],
|
||||||
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
|
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
|
||||||
],
|
],
|
||||||
'reports_report_tag' => [
|
'reports_report_tag' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'pieCharts' => ['element' => '#pieCharts'],
|
'pieCharts' => ['element' => '#pieCharts'],
|
||||||
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
|
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
|
||||||
],
|
],
|
||||||
'reports_report_budget' => [
|
'reports_report_budget' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'pieCharts' => ['element' => '#pieCharts'],
|
'pieCharts' => ['element' => '#pieCharts'],
|
||||||
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
|
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
|
||||||
],
|
],
|
||||||
|
|
||||||
// piggies: index, create, show
|
// piggies: index, create, show
|
||||||
'piggy-banks_index' => [
|
'piggy-banks_index' => [
|
||||||
'saved' => ['element' => '.piggySaved'],
|
'saved' => ['element' => '.piggySaved'],
|
||||||
'button' => ['element' => '.piggyBar'],
|
'button' => ['element' => '.piggyBar'],
|
||||||
'accountStatus' => ['element' => '#accountStatus', 'position' => 'top'],
|
'accountStatus' => ['element' => '#accountStatus', 'position' => 'top'],
|
||||||
],
|
],
|
||||||
'piggy-banks_create' => [
|
'piggy-banks_create' => [
|
||||||
'name' => ['element' => '#ffInput_name'],
|
'name' => ['element' => '#ffInput_name'],
|
||||||
'date' => ['element' => '#ffInput_targetdate'],
|
'date' => ['element' => '#ffInput_targetdate'],
|
||||||
],
|
],
|
||||||
'piggy-banks_show' => [
|
'piggy-banks_show' => [
|
||||||
'piggyChart' => ['element' => '#piggyChart'],
|
'piggyChart' => ['element' => '#piggyChart'],
|
||||||
'piggyDetails' => ['element' => '#piggyDetails'],
|
'piggyDetails' => ['element' => '#piggyDetails'],
|
||||||
'piggyEvents' => ['element' => '#piggyEvents'],
|
'piggyEvents' => ['element' => '#piggyEvents'],
|
||||||
],
|
],
|
||||||
|
|
||||||
// bills: index, create, show
|
// bills: index, create, show
|
||||||
'bills_index' => [
|
'bills_index' => [
|
||||||
'rules' => ['element' => '.rules'],
|
'rules' => ['element' => '.rules'],
|
||||||
'paid_in_period' => ['element' => '.paid_in_period'],
|
'paid_in_period' => ['element' => '.paid_in_period'],
|
||||||
'expected_in_period' => ['element' => '.expected_in_period'],
|
'expected_in_period' => ['element' => '.expected_in_period'],
|
||||||
],
|
],
|
||||||
'bills_create' => [
|
'bills_create' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'name' => ['element' => '#name_holder'],
|
'name' => ['element' => '#name_holder'],
|
||||||
// 'match' => ['element' => '#match_holder'],
|
// 'match' => ['element' => '#match_holder'],
|
||||||
@ -133,13 +133,13 @@ return [
|
|||||||
'repeat_freq_holder' => ['element' => '#repeat_freq_holder'],
|
'repeat_freq_holder' => ['element' => '#repeat_freq_holder'],
|
||||||
'skip_holder' => ['element' => '#skip_holder'],
|
'skip_holder' => ['element' => '#skip_holder'],
|
||||||
],
|
],
|
||||||
'bills_show' => [
|
'bills_show' => [
|
||||||
'billInfo' => ['element' => '#billInfo'],
|
'billInfo' => ['element' => '#billInfo'],
|
||||||
'billButtons' => ['element' => '#billButtons'],
|
'billButtons' => ['element' => '#billButtons'],
|
||||||
'billChart' => ['element' => '#billChart', 'position' => 'top'],
|
'billChart' => ['element' => '#billChart', 'position' => 'top'],
|
||||||
],
|
],
|
||||||
// rules: index, create-rule, edit-rule
|
// rules: index, create-rule, edit-rule
|
||||||
'rules_index' => [
|
'rules_index' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'new_rule_group' => ['element' => '#new_rule_group'],
|
'new_rule_group' => ['element' => '#new_rule_group'],
|
||||||
'new_rule' => ['element' => '.new_rule'],
|
'new_rule' => ['element' => '.new_rule'],
|
||||||
@ -148,23 +148,23 @@ return [
|
|||||||
'rule-triggers' => ['element' => '.rule-triggers'],
|
'rule-triggers' => ['element' => '.rule-triggers'],
|
||||||
'outro' => [],
|
'outro' => [],
|
||||||
],
|
],
|
||||||
'rules_create' => [
|
'rules_create' => [
|
||||||
'mandatory' => ['element' => '#mandatory'],
|
'mandatory' => ['element' => '#mandatory'],
|
||||||
'ruletriggerholder' => ['element' => '.rule-trigger-box'],
|
'ruletriggerholder' => ['element' => '.rule-trigger-box'],
|
||||||
'test_rule_triggers' => ['element' => '.test_rule_triggers'],
|
'test_rule_triggers' => ['element' => '.test_rule_triggers'],
|
||||||
'actions' => ['element' => '.rule-action-box', 'position' => 'top'],
|
'actions' => ['element' => '.rule-action-box', 'position' => 'top'],
|
||||||
],
|
],
|
||||||
// preferences: index
|
// preferences: index
|
||||||
'preferences_index' => [
|
'preferences_index' => [
|
||||||
'tabs' => ['element' => '.nav-tabs'],
|
'tabs' => ['element' => '.nav-tabs'],
|
||||||
],
|
],
|
||||||
// currencies: index, create
|
// currencies: index, create
|
||||||
'currencies_index' => [
|
'currencies_index' => [
|
||||||
'intro' => [],
|
'intro' => [],
|
||||||
'default' => ['element' => '#default-currency'],
|
'default' => ['element' => '#default-currency'],
|
||||||
'buttons' => ['element' => '.buttons'],
|
'buttons' => ['element' => '.buttons'],
|
||||||
],
|
],
|
||||||
'currencies_create' => [
|
'currencies_create' => [
|
||||||
'code' => ['element' => '#ffInput_code'],
|
'code' => ['element' => '#ffInput_code'],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -25,16 +25,16 @@ use FireflyIII\Support\Logging\AuditLogger;
|
|||||||
use Monolog\Handler\SyslogUdpHandler;
|
use Monolog\Handler\SyslogUdpHandler;
|
||||||
|
|
||||||
// standard config for both log things:
|
// standard config for both log things:
|
||||||
$defaultChannels = ['daily', 'stdout'];
|
$defaultChannels = ['daily', 'stdout'];
|
||||||
$auditChannels = ['audit_daily', 'audit_stdout'];
|
$auditChannels = ['audit_daily', 'audit_stdout'];
|
||||||
|
|
||||||
// validChannels is missing 'stack' because we already check for that one.
|
// validChannels is missing 'stack' because we already check for that one.
|
||||||
$validChannels = ['single', 'papertrail', 'stdout', 'daily', 'syslog', 'errorlog'];
|
$validChannels = ['single', 'papertrail', 'stdout', 'daily', 'syslog', 'errorlog'];
|
||||||
$validAuditChannels = ['audit_papertrail', 'audit_stdout', 'audit_stdout', 'audit_daily', 'audit_syslog', 'audit_errorlog'];
|
$validAuditChannels = ['audit_papertrail', 'audit_stdout', 'audit_stdout', 'audit_daily', 'audit_syslog', 'audit_errorlog'];
|
||||||
|
|
||||||
// which settings did the user set, if any?
|
// which settings did the user set, if any?
|
||||||
$defaultLogChannel = (string)envNonEmpty('LOG_CHANNEL', 'stack');
|
$defaultLogChannel = (string)envNonEmpty('LOG_CHANNEL', 'stack');
|
||||||
$auditLogChannel = (string)envNonEmpty('AUDIT_LOG_CHANNEL', '');
|
$auditLogChannel = (string)envNonEmpty('AUDIT_LOG_CHANNEL', '');
|
||||||
|
|
||||||
if ('stack' === $defaultLogChannel) {
|
if ('stack' === $defaultLogChannel) {
|
||||||
$defaultChannels = ['daily', 'stdout'];
|
$defaultChannels = ['daily', 'stdout'];
|
||||||
@ -59,8 +59,8 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => envNonEmpty('LOG_CHANNEL', 'stack'),
|
'default' => envNonEmpty('LOG_CHANNEL', 'stack'),
|
||||||
'level' => envNonEmpty('APP_LOG_LEVEL', 'info'),
|
'level' => envNonEmpty('APP_LOG_LEVEL', 'info'),
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Log Channels
|
| Log Channels
|
||||||
|
@ -32,10 +32,10 @@ return [
|
|||||||
| and used as needed; however, this mailer will be used by default.
|
| and used as needed; however, this mailer will be used by default.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'default' => envNonEmpty('MAIL_MAILER', 'log'),
|
'default' => envNonEmpty('MAIL_MAILER', 'log'),
|
||||||
|
|
||||||
'mailers' => [
|
'mailers' => [
|
||||||
'smtp' => [
|
'smtp' => [
|
||||||
'transport' => 'smtp',
|
'transport' => 'smtp',
|
||||||
'host' => envNonEmpty('MAIL_HOST', 'smtp.mailtrap.io'),
|
'host' => envNonEmpty('MAIL_HOST', 'smtp.mailtrap.io'),
|
||||||
'port' => (int)env('MAIL_PORT', 2525),
|
'port' => (int)env('MAIL_PORT', 2525),
|
||||||
@ -46,11 +46,11 @@ return [
|
|||||||
'verify_peer' => null !== env('MAIL_ENCRYPTION'),
|
'verify_peer' => null !== env('MAIL_ENCRYPTION'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'ses' => [
|
'ses' => [
|
||||||
'transport' => 'ses',
|
'transport' => 'ses',
|
||||||
],
|
],
|
||||||
|
|
||||||
'mailgun' => [
|
'mailgun' => [
|
||||||
'transport' => 'mailgun',
|
'transport' => 'mailgun',
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ return [
|
|||||||
'level' => 'notice',
|
'level' => 'notice',
|
||||||
],
|
],
|
||||||
|
|
||||||
'array' => [
|
'array' => [
|
||||||
'transport' => 'array',
|
'transport' => 'array',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -34,7 +34,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'),
|
'guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -47,9 +47,9 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'private_key' => env('PASSPORT_PRIVATE_KEY'),
|
'private_key' => env('PASSPORT_PRIVATE_KEY'),
|
||||||
|
|
||||||
'public_key' => env('PASSPORT_PUBLIC_KEY'),
|
'public_key' => env('PASSPORT_PUBLIC_KEY'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -62,7 +62,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'client_uuids' => false,
|
'client_uuids' => false,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -34,7 +34,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => env('QUEUE_CONNECTION', 'sync'),
|
'default' => env('QUEUE_CONNECTION', 'sync'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -50,11 +50,11 @@ return [
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'connections' => [
|
'connections' => [
|
||||||
'sync' => [
|
'sync' => [
|
||||||
'driver' => 'sync',
|
'driver' => 'sync',
|
||||||
],
|
],
|
||||||
|
|
||||||
'database' => [
|
'database' => [
|
||||||
'driver' => 'database',
|
'driver' => 'database',
|
||||||
'table' => 'jobs',
|
'table' => 'jobs',
|
||||||
'queue' => 'default',
|
'queue' => 'default',
|
||||||
@ -69,7 +69,7 @@ return [
|
|||||||
'block_for' => 0,
|
'block_for' => 0,
|
||||||
],
|
],
|
||||||
|
|
||||||
'sqs' => [
|
'sqs' => [
|
||||||
'driver' => 'sqs',
|
'driver' => 'sqs',
|
||||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||||
@ -79,7 +79,7 @@ return [
|
|||||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'driver' => 'redis',
|
'driver' => 'redis',
|
||||||
'connection' => 'default',
|
'connection' => 'default',
|
||||||
'queue' => env('REDIS_QUEUE', 'default'),
|
'queue' => env('REDIS_QUEUE', 'default'),
|
||||||
@ -99,7 +99,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'failed' => [
|
'failed' => [
|
||||||
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
|
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
|
||||||
'database' => env('DB_CONNECTION', 'mysql'),
|
'database' => env('DB_CONNECTION', 'mysql'),
|
||||||
'table' => 'failed_jobs',
|
'table' => 'failed_jobs',
|
||||||
|
@ -37,7 +37,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', '')),
|
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', '')),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -51,7 +51,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'guard' => [env('AUTHENTICATION_GUARD', 'web')],
|
'guard' => [env('AUTHENTICATION_GUARD', 'web')],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -34,13 +34,13 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'mailgun' => [
|
'mailgun' => [
|
||||||
'domain' => env('MAILGUN_DOMAIN'),
|
'domain' => env('MAILGUN_DOMAIN'),
|
||||||
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
|
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
|
||||||
'secret' => env('MAILGUN_SECRET'),
|
'secret' => env('MAILGUN_SECRET'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'ses' => [
|
'ses' => [
|
||||||
'key' => env('SES_KEY'),
|
'key' => env('SES_KEY'),
|
||||||
'secret' => env('SES_SECRET'),
|
'secret' => env('SES_SECRET'),
|
||||||
'region' => 'us-east-1',
|
'region' => 'us-east-1',
|
||||||
@ -50,12 +50,12 @@ return [
|
|||||||
'secret' => env('SPARKPOST_SECRET'),
|
'secret' => env('SPARKPOST_SECRET'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'stripe' => [
|
'stripe' => [
|
||||||
'model' => FireflyIII\User::class,
|
'model' => FireflyIII\User::class,
|
||||||
'key' => env('STRIPE_KEY'),
|
'key' => env('STRIPE_KEY'),
|
||||||
'secret' => env('STRIPE_SECRET'),
|
'secret' => env('STRIPE_SECRET'),
|
||||||
],
|
],
|
||||||
'mandrill' => [
|
'mandrill' => [
|
||||||
'secret' => env('MANDRILL_SECRET'),
|
'secret' => env('MANDRILL_SECRET'),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -54,7 +54,7 @@ use TwigBridge\Extension\Loader\Globals;
|
|||||||
|
|
||||||
// Configuration options for Twig.
|
// Configuration options for Twig.
|
||||||
return [
|
return [
|
||||||
'twig' => [
|
'twig' => [
|
||||||
'extension' => 'twig',
|
'extension' => 'twig',
|
||||||
'environment' => [
|
'environment' => [
|
||||||
'debug' => env('APP_DEBUG', false),
|
'debug' => env('APP_DEBUG', false),
|
||||||
|
@ -40,7 +40,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => $paths,
|
'paths' => $paths,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user