mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 17:12:15 +00:00
Set up billing profile
This commit is contained in:
@@ -17,10 +17,17 @@ class InvoiceProfileController extends Controller
|
||||
*/
|
||||
public function show()
|
||||
{
|
||||
return response(
|
||||
new InvoiceProfileResource(Auth::user()->invoiceProfile),
|
||||
200
|
||||
);
|
||||
$user = Auth::user();
|
||||
|
||||
if ($user->invoiceProfile) {
|
||||
|
||||
return response(
|
||||
new InvoiceProfileResource($user->invoiceProfile),
|
||||
200
|
||||
);
|
||||
}
|
||||
|
||||
return response("Profile didn't exists", 404);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user