29 lines
515 B
PHP
29 lines
515 B
PHP
<?php
|
|
|
|
namespace App\Actions\Chained;
|
|
|
|
use App\Models\User;
|
|
use Closure;
|
|
|
|
class GenerateProfilePhoto
|
|
{
|
|
/**
|
|
* Generates a profile photo for a user and saves it
|
|
* to disk.
|
|
*
|
|
* @package App\Actions\Chained\GenerateProfilePhoto
|
|
* @since 1.0.0
|
|
*
|
|
* @param \App\Models\User $user
|
|
* @param \Closure $next
|
|
*
|
|
* @return \App\Models\User
|
|
*/
|
|
public function __invoke(User $user, Closure $next): User
|
|
{
|
|
//
|
|
|
|
return $next($user);
|
|
}
|
|
}
|