You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use App\Http\Requests\CreateApiCommitRestorationRequest;
use App\Http\Resources\CommitResource;
use App\Models\Commit;
use App\Models\User;
use App\Queries\CommitPageQuery;
use Illuminate\Container\Attributes\CurrentUser;
final readonly class CommitRestorationController
{
/**
* Undoes deleting the user's commit within the undo window, as Undo on the web does, and answers with the commit
* as its page shows it.
*/
public function store(CreateApiCommitRestorationRequest $request, #[CurrentUser] User $user, Commit $commit, CreateCommitRestoration $action, CommitPageQuery $page): CommitResource