-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Description
<?php namespace Acme\Entities;
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
use Hash;
use Laracasts\Presenter\PresentableTrait;
use Watson\Validating\ValidatingTrait;
use Codesleeve\Stapler\ORM\StaplerableInterface;
use Codesleeve\Stapler\ORM\EloquentTrait;
class User extends \Eloquent implements UserInterface, RemindableInterface, StaplerableInterface {
use UserTrait, RemindableTrait, PresentableTrait, ValidatingTrait, EloquentTrait;
public function __construct(array $attributes = array()) {
$this->hasAttachedFile('avatar', [
'styles' => [
'medium' => '300x300',
'thumb' => '100x100',
'gravatar' => '74x74'
],
'url' => '/img/:attachment/:id_partition/:style/:filename',
'default_url' => '/img/missing.png'
]);
parent::__construct($attributes);
}
public static function boot()
{
parent::boot();
static::bootStapler();
}
The record is updated in db, but no files are stored in /public/img/avatar
What am I doing wrong?
Metadata
Metadata
Assignees
Labels
No labels