mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
controller refactoring part 9
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Domain\Subscriptions\Controllers;
|
||||
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Auth;
|
||||
use Domain\Subscriptions\Services\StripeService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
/**
|
||||
* Generate setup intent
|
||||
*/
|
||||
class GetSetupIntentController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
public StripeService $stripe,
|
||||
) {}
|
||||
|
||||
public function setup_intent(): Response
|
||||
{
|
||||
return response(
|
||||
$this->stripe->getSetupIntent(Auth::user()), 201
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user