mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Fix #915
This commit is contained in:
@@ -47,6 +47,11 @@ COPY . $FIREFLY_PATH
|
||||
RUN chown -R www-data:www-data /var/www && chmod -R 775 $FIREFLY_PATH/storage
|
||||
|
||||
RUN composer install --prefer-dist --no-dev --no-scripts
|
||||
RUN composer dump-autoload
|
||||
RUN php artisan firefly:upgrade-database
|
||||
RUN php artisan firefly:verify
|
||||
RUN php artisan firefly:instructions install
|
||||
RUN php artisan optimize
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
@@ -25,7 +25,7 @@ use Watson\Validating\ValidatingTrait;
|
||||
*/
|
||||
class TransactionCurrency extends Model
|
||||
{
|
||||
use SoftDeletes, ValidatingTrait;
|
||||
use SoftDeletes;
|
||||
|
||||
/**
|
||||
* The attributes that should be casted to native types.
|
||||
@@ -41,13 +41,6 @@ class TransactionCurrency extends Model
|
||||
];
|
||||
protected $dates = ['created_at', 'updated_at', 'deleted_at', 'date'];
|
||||
protected $fillable = ['name', 'code', 'symbol', 'decimal_places'];
|
||||
protected $rules
|
||||
= [
|
||||
'name' => 'required|between:1,48',
|
||||
'code' => 'required|between:3,3',
|
||||
'symbol' => 'required|between:1,8',
|
||||
'decimal_places' => 'required|min:0|max:12|numeric',
|
||||
];
|
||||
|
||||
/**
|
||||
* @param TransactionCurrency $currency
|
||||
|
Reference in New Issue
Block a user