mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
27 lines
513 B
PHP
27 lines
513 B
PHP
<?php
|
|
namespace Domain\Subscriptions\Controllers;
|
|
|
|
use Auth;
|
|
use Illuminate\Http\Response;
|
|
use App\Http\Controllers\Controller;
|
|
use Domain\Subscriptions\Services\StripeService;
|
|
|
|
/**
|
|
* Generate setup intent
|
|
*/
|
|
class GetSetupIntentController extends Controller
|
|
{
|
|
public function __construct(
|
|
public StripeService $stripe,
|
|
) {
|
|
}
|
|
|
|
public function __invoke(): Response
|
|
{
|
|
return response(
|
|
$this->stripe->getSetupIntent(Auth::user()),
|
|
201
|
|
);
|
|
}
|
|
}
|