Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Nov 5, 2023
1 parent 3fee6c1 commit af547f0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
> Fork from [treerful/laravel-newebpay](https://bitbucket.org/pickone/laravel-newebpay)
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Software License][ico-license]](LICENSE)
[![GitHub Tests Action Status][ico-github-action]][link-github-action]
[![Style CI Build Status][ico-style-ci]][link-style-ci]
[![Total Downloads][ico-downloads]][link-downloads]
<!-- [![CI Build Status][ico-ci]][link-ci] -->

Laravel NewebPay 為針對 Laravel 所寫的藍新金流(智付通)金流串接套件。

Expand Down Expand Up @@ -90,7 +90,7 @@ Inertia.js 可以參考以下:
```php
Route::get('/pay', function () {
return Inertia::render('Pay', [
'csrf_token' => csrf_token(),
'csrfToken' => csrf_token(),
]);
});
```
Expand All @@ -99,14 +99,14 @@ Route::get('/pay', function () {
```vue
<template>
<form action="/pay" method="POST">
<input type="hidden" name="_token" :value="csrf_token">
<input type="hidden" name="_token" :value="csrfToken">
<button>付款</button>
</form>
</template>
<script setup>
defineProps({
csrf_token: String,
csrfToken: String,
})
</script>
```
Expand Down Expand Up @@ -539,7 +539,7 @@ Inertia.js 可以參考以下:
```php
Route::get('/subscribe', function () {
return Inertia::render('Subscribe', [
'csrf_token' => csrf_token(),
'csrfToken' => csrf_token(),
]);
});
```
Expand All @@ -548,14 +548,14 @@ Route::get('/subscribe', function () {
```vue
<template>
<form action="/subscribe" method="POST">
<input type="hidden" name="_token" :value="csrf_token">
<input type="hidden" name="_token" :value="csrfToken">
<button>訂閱</button>
</form>
</template>
<script setup>
defineProps({
csrf_token: String,
csrfToken: String,
})
</script>
```
Expand Down Expand Up @@ -805,11 +805,11 @@ Under the [MIT LICENSE](LICENSE)

[ico-version]: https://img.shields.io/packagist/v/ycs77/laravel-newebpay?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen?style=flat-square
[ico-ci]: https://img.shields.io/travis/ycs77/laravel-newebpay?style=flat-square
[ico-github-action]: https://img.shields.io/github/actions/workflow/status/ycs77/laravel-newebpay/tests.yml?branch=main&label=tests&style=flat-square
[ico-style-ci]: https://github.styleci.io/repos/262404477/shield?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/ycs77/laravel-newebpay?style=flat-square

[link-packagist]: https://packagist.org/packages/ycs77/laravel-newebpay
[link-ci]: https://app.travis-ci.com/github/ycs77/laravel-newebpay
[link-github-action]: https://github.com/ycs77/laravel-newebpay/actions/workflows/tests.yml?query=branch%3Amain
[link-style-ci]: https://github.styleci.io/repos/262404477
[link-downloads]: https://packagist.org/packages/ycs77/laravel-newebpay

0 comments on commit af547f0

Please sign in to comment.