Hi @dust
Just out of curiousity, can you tweak your user factory model to add an avatar?
Add the column avatar in your db, then modify the factory model for user
$factory->define(App\User::class, function (Faker\Generator $faker) {
static $password;
$filepath = storage_path('avatars');
if(!File::exists($filepath)){
File::makeDirectory($filepath);
}
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'password' => $password ?: $password = bcrypt('secret'),
'remember_token' => str_random(10),
'avatar' => $faker->image($filepath,400, 300)
];
Then in Tinker just create a new user (this example is the result of a successful test on my Mac)
>>> factory('App\User')->create();
=> App\User {#856
name: "Lloyd Keeling",
client_id: 17,
email: "iliana01@example.net",
avatar: "/the/path/to/laravel/storage/avatars/07abbdfe78165d505710148c290f9289.jpg",
updated_at: "2017-04-18 19:54:18",
created_at: "2017-04-18 19:54:18",
id: 13,
}
What is your environment? I would look into the user running your web server and its permissions.