From 8609630669e7b183700c0387e470d418d26306bd Mon Sep 17 00:00:00 2001 From: joseph le Date: Fri, 8 Dec 2023 16:26:11 +0700 Subject: [PATCH] update README --- README.md | 142 ++++++++++++++++++------------- resources/views/paypal.blade.php | 8 +- 2 files changed, 87 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index 1824fc1..c37b403 100755 --- a/README.md +++ b/README.md @@ -1,66 +1,90 @@ -

Laravel Logo

+# Sample project combining Paypal, reCaptcha, Excel export, laravel/breeze -

-Build Status -Total Downloads -Latest Stable Version -License -

+## Pay with Paypal -## About Laravel +#### [srmklive/paypal package](https://srmklive.github.io/laravel-paypal/docs.html) +- Install: `composer require srmklive/paypal` +- Structure of order data: +```js +[ + "intent" => "CAPTURE", + "application_context" => [ + "return_url" => route('paypal.payment.success'), + "cancel_url" => route('paypal.payment/cancel'), + ], + "purchase_units" => [ + 0 => [ + 'amount' => [ + 'currency_code' => "", + 'value' => "", + "breakdown" => [ + "item_total" => [ + "currency_code" => "", + "value" => "", + ], + "shipping" => [ + "currency_code" => "", + "value" => "", + ], + "tax_total" => [ + "currency_code" => "", + "value" => "", + ], + "discount" => [ + "currency_code" => "", + "value" => "", + ], + ], + ], + 'items' => [] + ], + ], +] +``` +- Structure of items data: +```javascript +[ + [ + 'id' => 1, + 'item' => [ + 'name' => 'Laptop', + 'sku' => 'L001', + 'quantity' => '1', + 'unit_amount' => [ + 'currency_code' => 'USD', + 'value' => '1000', + ], + ] + ], + [ + 'id' => 2, + 'item' => [ + 'name' => 'iPad', + 'sku' => 'I001', + 'quantity' => '1', + 'unit_amount' => [ + 'currency_code' => 'USD', + 'value' => '500', + ], + ] + ], + + ... +] +``` +## reCaptcha -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: +#### [anhskohbo/no-captcha package](https://github.com/anhskohbo/no-captcha) +- Install: `composer require anhskohbo/no-captcha` +- Register a new site (create reCaptcha): https://www.google.com/recaptcha/admin/create -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). +## Excel export -Laravel is accessible, powerful, and provides tools required for large, robust applications. +#### [maatwebsite/excel package](https://docs.laravel-excel.com/3.1/exports/) +- Install: `composer require maatwebsite/excel -W --ignore-platform-req=ext-zip` +- Configuration: https://techsolutionstuff.com/post/laravel-10-import-export-csv-and-excel-file -## Learning Laravel +## Starter kits -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. - -You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. - -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. - -## Laravel Sponsors - -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). - -### Premium Partners - -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[WebReinvent](https://webreinvent.com/)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** -- **[Cyber-Duck](https://cyber-duck.co.uk)** -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** -- **[Jump24](https://jump24.co.uk)** -- **[Redberry](https://redberry.international/laravel/)** -- **[Active Logic](https://activelogic.com)** -- **[byte5](https://byte5.de)** -- **[OP.GG](https://op.gg)** - -## Contributing - -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). - -## Code of Conduct - -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). - -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. - -## License - -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +#### [laravel/breeze package](https://laravel.com/docs/10.x/starter-kits) +- Install: `composer require laravel/breeze` diff --git a/resources/views/paypal.blade.php b/resources/views/paypal.blade.php index 35145b2..56f85f2 100755 --- a/resources/views/paypal.blade.php +++ b/resources/views/paypal.blade.php @@ -35,10 +35,10 @@ @endif -
+
- ... + ...
Laptop
@@ -52,7 +52,7 @@
- ... + ...
iPad
@@ -64,7 +64,7 @@
- ... + ...
Dep Lao's