adding an action for genering profile photos

This commit is contained in:
Brian 2023-03-27 10:21:08 -06:00
parent 8876f07ac6
commit a0dc0e01f3
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

@ -0,0 +1,28 @@
<?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);
}
}