Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
aocneanu committed Oct 21, 2018
1 parent 44aa6c7 commit ae6e242
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .styleci.yml
Expand Up @@ -8,7 +8,6 @@ enabled:

disabled:
- short_array_syntax
- not_operator_with_successor_space

finder:
exclude:
Expand Down
1 change: 1 addition & 0 deletions src/AppServiceProvider.php
Expand Up @@ -14,6 +14,7 @@ public function boot()
]);

$this->loadMigrationsFrom(__DIR__.'/database/migrations');

$this->loadRoutesFrom(__DIR__.'/routes/api.php');

$this->publishes([
Expand Down
8 changes: 5 additions & 3 deletions src/app/Models/Avatar.php
Expand Up @@ -16,14 +16,16 @@ class Avatar extends Model implements Attachable
const ImageHeight = 250;

protected $optimizeImages = true;

protected $resizeImages = [self::ImageWidth, self::ImageHeight];

protected $mimeTypes = ['image/png', 'image/jpg', 'image/jpeg'];

protected $fillable = ['user_id', 'original_name', 'saved_name'];

protected $hidden = ['user_id', 'created_at', 'updated_at'];
protected $casts = [
'user_id' => 'int',
];

protected $casts = ['user_id' => 'int'];

public function user()
{
Expand Down

0 comments on commit ae6e242

Please sign in to comment.