├── public ├── favicon.ico ├── robots.txt ├── vendor │ └── laravel-admin │ │ ├── AdminLTE │ │ ├── plugins │ │ │ ├── input-mask │ │ │ │ └── phone-codes │ │ │ │ │ └── readme.txt │ │ │ ├── iCheck │ │ │ │ ├── flat │ │ │ │ │ ├── aero.png │ │ │ │ │ ├── blue.png │ │ │ │ │ ├── flat.png │ │ │ │ │ ├── green.png │ │ │ │ │ ├── grey.png │ │ │ │ │ ├── pink.png │ │ │ │ │ ├── red.png │ │ │ │ │ ├── aero@2x.png │ │ │ │ │ ├── blue@2x.png │ │ │ │ │ ├── flat@2x.png │ │ │ │ │ ├── grey@2x.png │ │ │ │ │ ├── orange.png │ │ │ │ │ ├── pink@2x.png │ │ │ │ │ ├── purple.png │ │ │ │ │ ├── red@2x.png │ │ │ │ │ ├── yellow.png │ │ │ │ │ ├── green@2x.png │ │ │ │ │ ├── orange@2x.png │ │ │ │ │ ├── purple@2x.png │ │ │ │ │ ├── yellow@2x.png │ │ │ │ │ ├── flat.css │ │ │ │ │ ├── red.css │ │ │ │ │ ├── aero.css │ │ │ │ │ ├── blue.css │ │ │ │ │ ├── grey.css │ │ │ │ │ ├── pink.css │ │ │ │ │ ├── green.css │ │ │ │ │ ├── orange.css │ │ │ │ │ ├── purple.css │ │ │ │ │ └── yellow.css │ │ │ │ ├── line │ │ │ │ │ ├── line.png │ │ │ │ │ └── line@2x.png │ │ │ │ ├── square │ │ │ │ │ ├── red.png │ │ │ │ │ ├── aero.png │ │ │ │ │ ├── blue.png │ │ │ │ │ ├── green.png │ │ │ │ │ ├── grey.png │ │ │ │ │ ├── pink.png │ │ │ │ │ ├── aero@2x.png │ │ │ │ │ ├── blue@2x.png │ │ │ │ │ ├── green@2x.png │ │ │ │ │ ├── grey@2x.png │ │ │ │ │ ├── orange.png │ │ │ │ │ ├── pink@2x.png │ │ │ │ │ ├── purple.png │ │ │ │ │ ├── red@2x.png │ │ │ │ │ ├── square.png │ │ │ │ │ ├── yellow.png │ │ │ │ │ ├── orange@2x.png │ │ │ │ │ ├── purple@2x.png │ │ │ │ │ ├── square@2x.png │ │ │ │ │ ├── yellow@2x.png │ │ │ │ │ └── square.css │ │ │ │ ├── minimal │ │ │ │ │ ├── aero.png │ │ │ │ │ ├── blue.png │ │ │ │ │ ├── grey.png │ │ │ │ │ ├── pink.png │ │ │ │ │ ├── red.png │ │ │ │ │ ├── aero@2x.png │ │ │ │ │ ├── blue@2x.png │ │ │ │ │ ├── green.png │ │ │ │ │ ├── grey@2x.png │ │ │ │ │ ├── minimal.png │ │ │ │ │ ├── orange.png │ │ │ │ │ ├── pink@2x.png │ │ │ │ │ ├── purple.png │ │ │ │ │ ├── red@2x.png │ │ │ │ │ ├── yellow.png │ │ │ │ │ ├── green@2x.png │ │ │ │ │ ├── orange@2x.png │ │ │ │ │ ├── purple@2x.png │ │ │ │ │ ├── yellow@2x.png │ │ │ │ │ └── minimal@2x.png │ │ │ │ ├── polaris │ │ │ │ │ ├── polaris.png │ │ │ │ │ ├── polaris@2x.png │ │ │ │ │ └── polaris.css │ │ │ │ ├── futurico │ │ │ │ │ ├── futurico.png │ │ │ │ │ ├── futurico@2x.png │ │ │ │ │ └── futurico.css │ │ │ │ └── all.css │ │ │ ├── colorpicker │ │ │ │ └── img │ │ │ │ │ ├── hue.png │ │ │ │ │ ├── alpha.png │ │ │ │ │ ├── saturation.png │ │ │ │ │ ├── alpha-horizontal.png │ │ │ │ │ └── hue-horizontal.png │ │ │ ├── ionslider │ │ │ │ └── img │ │ │ │ │ ├── sprite-skin-flat.png │ │ │ │ │ └── sprite-skin-nice.png │ │ │ └── select2 │ │ │ │ └── i18n │ │ │ │ ├── zh-TW.js │ │ │ │ ├── az.js │ │ │ │ ├── zh-CN.js │ │ │ │ ├── fi.js │ │ │ │ ├── ja.js │ │ │ │ ├── hu.js │ │ │ │ ├── tr.js │ │ │ │ ├── th.js │ │ │ │ ├── ko.js │ │ │ │ ├── vi.js │ │ │ │ ├── id.js │ │ │ │ ├── is.js │ │ │ │ ├── de.js │ │ │ │ ├── ar.js │ │ │ │ ├── et.js │ │ │ │ ├── sv.js │ │ │ │ ├── km.js │ │ │ │ ├── nb.js │ │ │ │ ├── bg.js │ │ │ │ ├── ms.js │ │ │ │ ├── gl.js │ │ │ │ ├── da.js │ │ │ │ ├── en.js │ │ │ │ ├── he.js │ │ │ │ ├── hi.js │ │ │ │ ├── fa.js │ │ │ │ ├── hr.js │ │ │ │ ├── mk.js │ │ │ │ ├── eu.js │ │ │ │ ├── pt-BR.js │ │ │ │ ├── lv.js │ │ │ │ ├── pt.js │ │ │ │ ├── es.js │ │ │ │ ├── ca.js │ │ │ │ ├── it.js │ │ │ │ ├── fr.js │ │ │ │ ├── nl.js │ │ │ │ ├── ro.js │ │ │ │ ├── lt.js │ │ │ │ ├── pl.js │ │ │ │ ├── el.js │ │ │ │ ├── sr.js │ │ │ │ ├── sr-Cyrl.js │ │ │ │ ├── uk.js │ │ │ │ ├── ru.js │ │ │ │ ├── sk.js │ │ │ │ └── cs.js │ │ ├── dist │ │ │ └── img │ │ │ │ ├── icons.png │ │ │ │ ├── boxed-bg.jpg │ │ │ │ ├── boxed-bg.png │ │ │ │ ├── credit │ │ │ │ ├── visa.png │ │ │ │ ├── cirrus.png │ │ │ │ ├── mestro.png │ │ │ │ ├── paypal.png │ │ │ │ ├── paypal2.png │ │ │ │ ├── mastercard.png │ │ │ │ └── american-express.png │ │ │ │ ├── default-50x50.gif │ │ │ │ └── user2-160x160.jpg │ │ └── bootstrap │ │ │ └── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ ├── bootstrap3-editable │ │ └── img │ │ │ ├── clear.png │ │ │ └── loading.gif │ │ ├── bootstrap-fileinput │ │ ├── img │ │ │ ├── loading.gif │ │ │ └── loading-sm.gif │ │ └── js │ │ │ └── plugins │ │ │ └── canvas-to-blob.min.js │ │ ├── font-awesome │ │ └── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ └── fontawesome-webfont.woff2 │ │ ├── google-fonts │ │ └── fonts │ │ │ ├── Source-Sans-Pro.eot │ │ │ ├── Source-Sans-Pro.ttf │ │ │ ├── Source-Sans-Pro.woff │ │ │ ├── Source-Sans-Pro.woff2 │ │ │ ├── Source-Sans-Pro-Bold.ttf │ │ │ ├── Source-Sans-Pro-Bold.woff │ │ │ ├── Source-Sans-Pro-Bold.woff2 │ │ │ ├── Source-Sans-Pro-Italic.ttf │ │ │ ├── Source-Sans-Pro-Light.ttf │ │ │ ├── Source-Sans-Pro-Light.woff │ │ │ ├── Source-Sans-Pro-Italic.woff │ │ │ ├── Source-Sans-Pro-Italic.woff2 │ │ │ ├── Source-Sans-Pro-Light.woff2 │ │ │ ├── Source-Sans-Pro-Semibold.ttf │ │ │ ├── Source-Sans-Pro-Semibold.woff │ │ │ ├── Source-Sans-Pro-Semibold.woff2 │ │ │ ├── Source-Sans-Pro-Light-Italic.ttf │ │ │ ├── Source-Sans-Pro-Light-Italic.woff │ │ │ ├── Source-Sans-Pro-Light-Italic.woff2 │ │ │ ├── Source-Sans-Pro-Semibold-Italic.ttf │ │ │ ├── Source-Sans-Pro-Semibold-Italic.woff │ │ │ └── Source-Sans-Pro-Semibold-Italic.woff2 │ │ ├── laravel-admin │ │ └── laravel-admin.css │ │ ├── nestable │ │ └── nestable.css │ │ ├── nprogress │ │ └── nprogress.css │ │ └── bootstrap-duallistbox │ │ └── dist │ │ └── bootstrap-duallistbox.min.css ├── .htaccess └── web.config ├── database ├── .gitignore ├── seeds │ ├── OrdersSeeder.php │ ├── CouponCodesSeeder.php │ ├── UsersSeeder.php │ ├── UserAddressesSeeder.php │ ├── DatabaseSeeder.php │ └── ProductsSeeder.php ├── factories │ ├── ProductSkuFactory.php │ ├── OrderItemFactory.php │ ├── UserAddressFactory.php │ ├── UserFactory.php │ ├── CouponCodeFactory.php │ └── ProductFactory.php └── migrations │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2019_02_24_120013_create_cart_items_table.php │ ├── 2019_02_24_085813_create_user_favorite_products_table.php │ ├── 2019_02_23_072956_create_product_skus_table.php │ ├── 2019_02_23_072923_create_products_table.php │ ├── 2019_03_06_171448_orders_add_coupon_code_id.php │ ├── 2019_03_06_165756_create_coupon_codes_table.php │ ├── 2019_02_20_094023_create_user_addresses_table.php │ └── 2019_02_24_215803_create_order_items_table.php ├── bootstrap ├── cache │ └── .gitignore ├── helpers.php └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── .gitattributes ├── resources ├── views │ ├── pages │ │ ├── root.blade.php │ │ ├── error.blade.php │ │ └── success.blade.php │ ├── layouts │ │ ├── _footer.blade.php │ │ └── app.blade.php │ └── auth │ │ └── verify.blade.php ├── sass │ └── _variables.scss ├── js │ ├── components │ │ ├── UserAddressesCreateAndEdit.js │ │ └── ExampleComponent.vue │ └── app.js └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── app ├── Admin │ ├── Controllers │ │ ├── AuthController.php │ │ └── HomeController.php │ ├── bootstrap.php │ └── routes.php ├── Http │ ├── Controllers │ │ ├── PagesController.php │ │ ├── Controller.php │ │ ├── CouponCodesController.php │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ ├── Authenticate.php │ │ ├── RedirectIfAuthenticated.php │ │ └── VerifyCsrfToken.php │ └── Requests │ │ ├── Request.php │ │ ├── Admin │ │ └── HandleRefundRequest.php │ │ ├── ApplyRefunRequest.php │ │ ├── UserAddressRequest.php │ │ ├── SendReviewRequest.php │ │ └── AddCartRequest.php ├── Models │ ├── CartItem.php │ ├── OrderItem.php │ ├── UserAddress.php │ ├── Product.php │ ├── ProductSku.php │ └── User.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Policies │ ├── OrderPolicy.php │ └── UserAddressPolicy.php ├── Exceptions │ ├── InvalidRequestException.php │ ├── InternalException.php │ ├── CouponCodeUnavailableException.php │ └── Handler.php ├── Events │ ├── OrderReviewed.php │ └── OrderPaid.php ├── Listeners │ ├── SendOrderPaidMail.php │ ├── UpdateProductRating.php │ └── UpdateProductSoldCount.php ├── Console │ └── Kernel.php ├── Services │ └── CartService.php └── Jobs │ └── CloseOrder.php ├── .editorconfig ├── .gitignore ├── routes ├── channels.php ├── api.php └── console.php ├── webpack.mix.js ├── server.php ├── .env.example ├── config ├── view.php ├── services.php ├── hashing.php └── broadcasting.php ├── phpunit.xml └── package.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /database/seeds/OrdersSeeder.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /bootstrap/helpers.php: -------------------------------------------------------------------------------- 1 | 这里是首页 6 | @stop -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/input-mask/phone-codes/readme.txt: -------------------------------------------------------------------------------- 1 | more phone masks can be found at https://github.com/andr-04/inputmask-multi -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/icons.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/boxed-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/boxed-bg.jpg -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/boxed-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/boxed-bg.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/visa.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap3-editable/img/clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/bootstrap3-editable/img/clear.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/cirrus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/cirrus.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/mestro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/mestro.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/default-50x50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/default-50x50.gif -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/user2-160x160.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/user2-160x160.jpg -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap-fileinput/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/bootstrap-fileinput/img/loading.gif -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap3-editable/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/bootstrap3-editable/img/loading.gif -------------------------------------------------------------------------------- /public/vendor/laravel-admin/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal2.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/red.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap-fileinput/img/loading-sm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/bootstrap-fileinput/img/loading-sm.gif -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.eot -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/mastercard.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/hue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/hue.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/aero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/aero.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/pink.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/red.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/aero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/aero.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/green.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/aero@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/aero@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/pink@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/pink@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/purple.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/red@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/red@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/aero@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/aero@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/green@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/green@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/red@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/red@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/american-express.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/american-express.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/purple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/purple@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/saturation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/saturation.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha-horizontal.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/hue-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/hue-horizontal.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/ionslider/img/sprite-skin-flat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/ionslider/img/sprite-skin-flat.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/ionslider/img/sprite-skin-nice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/ionslider/img/sprite-skin-nice.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i65/20190220-laravel-shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff2 -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | create(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /database/factories/ProductSkuFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Models\ProductSku::class, function (Faker $faker) { 6 | return [ 7 | 'title' => $faker->word, 8 | 'description' => $faker->sentence, 9 | 'price' => $faker->randomNumber(4), 10 | 'stock' => $faker->randomNumber(5), 11 | ]; 12 | }); 13 | -------------------------------------------------------------------------------- /database/seeds/UsersSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Requests/Request.php: -------------------------------------------------------------------------------- 1 | 6 |
错误
7 |
8 |

{{ $msg }}

9 | 返回首页 10 |
11 | 12 | @endsection 13 | -------------------------------------------------------------------------------- /resources/views/pages/success.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title', "操作成功") 3 | 4 | @section('content') 5 |
6 |
操作成功
7 |
8 |

{{ $msg }}

9 | 返回首页 10 |
11 |
12 | @endsection -------------------------------------------------------------------------------- /resources/views/layouts/_footer.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f8fafc; 4 | 5 | // Typography 6 | $font-family-sans-serif: "Nunito", sans-serif; 7 | $font-size-base: 0.9rem; 8 | $line-height-base: 1.6; 9 | 10 | // Colors 11 | $blue: #3490dc; 12 | $indigo: #6574cd; 13 | $purple: #9561e2; 14 | $pink: #f66D9b; 15 | $red: #e3342f; 16 | $orange: #f6993f; 17 | $yellow: #ffed4a; 18 | $green: #38c172; 19 | $teal: #4dc0b5; 20 | $cyan: #6cb2eb; 21 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Models/CartItem.php: -------------------------------------------------------------------------------- 1 | belongsTo(User::class); 16 | } 17 | 18 | public function productSku() 19 | { 20 | return $this->belongsTo(ProductSku::class); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | each(function (User $user) { 18 | factory(UserAddress::class, random_int(1, 3))->create(['user_id' => $user->id]); 19 | }); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | user_id == $user->id; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /app/Policies/UserAddressPolicy.php: -------------------------------------------------------------------------------- 1 | user_id == $user->id; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | $this->call(UsersSeeder::class); 16 | $this->call(UserAddressesSeeder::class); 17 | $this->call(ProductCodesSeeder::class); 18 | $this->call(CouponCodesSeeder::class); 19 | $this->call(OrdersSeeder::class); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /app/Http/Requests/Admin/HandleRefundRequest.php: -------------------------------------------------------------------------------- 1 | ['required', 'boolean'], 20 | 'reason' => ['required_if:agree,false'], // 拒绝退款时需要输入拒绝理由 21 | ]; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/Http/Requests/ApplyRefunRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 19 | ]; 20 | } 21 | 22 | public function attributes() 23 | { 24 | return [ 25 | 'reason' => '原因', 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .sass('resources/sass/app.scss', 'public/css') 16 | .version(); 17 | -------------------------------------------------------------------------------- /resources/js/components/UserAddressesCreateAndEdit.js: -------------------------------------------------------------------------------- 1 | // 注册一个名为 user-addresses-create-and-edit 的组件 2 | Vue.component('user-addresses-create-and-edit', { 3 | // 组件的数据 4 | data() { 5 | return { 6 | province: '', // 省 7 | city: '', // 市 8 | district: '', // 区 9 | } 10 | }, 11 | methods: { 12 | // 把参数 val 中的值保存到组件的数据中 13 | onDistrictChanged(val) { 14 | if (val.length === 3) { 15 | this.province = val[0]; 16 | this.city = val[1]; 17 | this.district = val[2]; 18 | } 19 | } 20 | } 21 | }); -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | first()) { 19 | throw new CouponCodeUnavailableException('优惠券不存在'); 20 | } 21 | 22 | $record->checkAvailable($request->user()); 23 | 24 | return $record; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/az.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol silin"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/zh-CN.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="请删除"+t+"个字符";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="请再输入至少"+t+"个字符";return n},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(e){var t="最多只能选择"+e.maximum+"个项目";return t},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/fi.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fi",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Ole hyvä ja anna "+t+" merkkiä vähemmän"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Ole hyvä ja anna "+t+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(e){return"Voit valita ainoastaan "+e.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /database/factories/OrderItemFactory.php: -------------------------------------------------------------------------------- 1 | define(OrderItem::class, function (Faker $faker) { 9 | 10 | // 从数据库随机取一条商品 11 | $product = Product::query()->where('on_sale', true)->inRandomOrder()->first(); 12 | // 从该商品的 SKU 中随机取一条 13 | $sku = $product->sku()->inRandomOrder()->first(); 14 | 15 | return [ 16 | 'amount' => random_int(1, 5), // 购买数量随机 1 - 5 份 17 | 'price' => $sku->price, 18 | 'rating' => null, 19 | 'review' => null, 20 | 'reviewed_at' => null, 21 | 'product_id' => $product->id, 22 | 'product_sku_id' => $sku->id, 23 | ]; 24 | }); 25 | -------------------------------------------------------------------------------- /database/seeds/ProductsSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 16 | foreach ($products as $product) { 17 | // 创建 3 个 SKU, 并且每个 SKU 的 `product_id` 字段都设为当前循环的商品 id 18 | $skus = factory(\App\Models\ProductSku::class, 3)->create(['product_id' => $product->id]); 19 | 20 | // 找出价格最低的 SKU 价格, 把商品价格设置为该价格 21 | $product->update(['price' => $skus->min('price')]); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ja.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" 文字を削除してください";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="少なくとも "+t+" 文字を入力してください";return n},loadingMore:function(){return"読み込み中…"},maximumSelected:function(e){var t=e.maximum+" 件しか選択できません";return t},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /app/Exceptions/InvalidRequestException.php: -------------------------------------------------------------------------------- 1 | expectsJson) { 20 | // json() 方法第二个参数就是 Http 返回码 21 | return response()->json(['msg' => $this->message], $this->code); 22 | } 23 | return view('pages.error', ['msg' => $this->message]); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/Exceptions/InternalException.php: -------------------------------------------------------------------------------- 1 | msgForUser = $msgForUser; 17 | } 18 | 19 | public function render(Request $request) 20 | { 21 | if ($request->expectJson()) { 22 | return response()->json(['msg' => $this->msgForUser], $this->code); 23 | } 24 | 25 | return view('pages.error', ['msg' => $this->msgForUser]); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/hu.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Túl hosszú. "+t+" karakterrel több, mint kellene."},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Túl rövid. Még "+t+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/tr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/tr",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" karakter daha girmelisiniz";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="En az "+t+" karakter daha girmelisiniz";return n},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(e){var t="Sadece "+e.maximum+" seçim yapabilirsiniz";return t},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/th.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/th",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="โปรดลบออก "+t+" ตัวอักษร";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="โปรดพิมพ์เพิ่มอีก "+t+" ตัวอักษร";return n},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(e){var t="คุณสามารถเลือกได้ไม่เกิน "+e.maximum+" รายการ";return t},noResults:function(){return"ไม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ko.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="너무 깁니다. "+t+" 글자 지워주세요.";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="너무 짧습니다. "+t+" 글자 더 입력해주세요.";return n},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(e){var t="최대 "+e.maximum+"개까지만 선택 가능합니다.";return t},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /app/Admin/bootstrap.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * Bootstraper for Admin. 8 | * 9 | * Here you can remove builtin form field: 10 | * Encore\Admin\Form::forget(['map', 'editor']); 11 | * 12 | * Or extend custom form field: 13 | * Encore\Admin\Form::extend('php', PHPEditor::class); 14 | * 15 | * Or require js and css assets: 16 | * Admin::css('/packages/prettydocs/css/styles.css'); 17 | * Admin::js('/packages/prettydocs/js/main.js'); 18 | * 19 | */ 20 | 21 | // Laravel-Admin 为了避免加载太多前端静态文件, 22 | // 默认禁用了 editor 这个表单组件,我们可以在 app/Admin/bootstrap.php 中把这个禁用解除: 23 | // Encore\Admin\Form::forget(['map', 'editor']); 24 | 25 | Encore\Admin\Form::forget(['map']); 26 | -------------------------------------------------------------------------------- /app/Exceptions/CouponCodeUnavailableException.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 21 | return response()->json(['msg' => $this->message], $this->code); 22 | } 23 | // 否则返回上一页并带上错误信息 24 | return redirect()->back()->withErrors(['coupon_code' => $this->message]); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/vi.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/vi",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vui lòng nhập ít hơn "+t+" ký tự";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vui lòng nhập nhiều hơn "+t+' ký tự"';return n},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(e){var t="Chỉ có thể chọn được "+e.maximum+" lựa chọn";return t},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/id.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Hapuskan "+t+" huruf"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Masukkan "+t+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(e){return"Anda hanya dapat memilih "+e.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/is.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/is",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vinsamlegast styttið texta um "+t+" staf";return t<=1?n:n+"i"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vinsamlegast skrifið "+t+" staf";return t>1&&(n+="i"),n+=" í viðbót",n},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(e){return"Þú getur aðeins valið "+e.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @yield('title', 'Laravel Shop') - Laravel 电商教程 8 | 9 | 10 | 11 | 12 |
13 | @include('layouts._header') 14 |
15 | @yield('content') 16 |
17 | @include('layouts._footer') 18 |
19 | 20 | 21 | @yield('scriptsAfterJs') 22 | 23 | -------------------------------------------------------------------------------- /app/Models/OrderItem.php: -------------------------------------------------------------------------------- 1 | belongsTo(Product::class); 24 | } 25 | 26 | public function productSku() 27 | { 28 | return $this->belongsTo(ProductSku::class); 29 | } 30 | 31 | public function order() 32 | { 33 | return $this->belongsTo(Order::class); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/de.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/de",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Bitte "+t+" Zeichen weniger eingeben"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Bitte "+t+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Eintr";return e.maximum===1?t+="ag":t+="äge",t+=" auswählen",t},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ar.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="الرجاء حذف "+t+" عناصر";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="الرجاء إضافة "+t+" عناصر";return n},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(e){var t="تستطيع إختيار "+e.maximum+" بنود فقط";return t},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/et.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" vähem",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" rohkem",n},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var t="Saad vaid "+e.maximum+" tulemus";return e.maximum==1?t+="e":t+="t",t+=" valida",t},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /database/factories/UserAddressFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Models\UserAddress::class, function (Faker $faker) { 6 | $addresses = [ 7 | ['北京市', '车辖区', '东城区'], 8 | ["河北省", "石家庄市", "长安区"], 9 | ["江苏省", "南京市", "浦口区"], 10 | ["江苏省", "苏州市", "相城区"], 11 | ["广东省", "深圳市", "福田区"], 12 | ]; 13 | $address = $faker->randomElement($addresses); 14 | 15 | return [ 16 | 'province' => $address[0], 17 | 'city' => $address[1], 18 | 'district' => $address[2], 19 | 'address' => sprintf('第%d街道第%d号', $faker->randomNumber(2), $faker->randomNumber(3)), 20 | 'zip' => $faker->postcode, 21 | 'contact_name' => $faker->name, 22 | 'contact_phone' => $faker->phoneNumber, 23 | ]; 24 | }); 25 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sv.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vänligen sudda ut "+t+" tecken";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vänligen skriv in "+t+" eller fler tecken";return n},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(e){var t="Du kan max välja "+e.maximum+" element";return t},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/km.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="សូមលុបចេញ "+t+" អក្សរ";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="សូមបញ្ចូល"+t+" អក្សរ រឺ ច្រើនជាងនេះ";return n},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(e){var t="អ្នកអាចជ្រើសរើសបានតែ "+e.maximum+" ជម្រើសប៉ុណ្ណោះ";return t},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/nb.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/nb",[],function(){return{errorLoading:function(){return"Kunne ikke hente resultater."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Vennligst fjern "+t+" tegn"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vennligst skriv inn ";return t>1?n+=" flere tegn":n+=" tegn til",n},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/bg.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+" по-малко символ";return t>1&&(n+="a"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Моля въведете още "+t+" символ";return t>1&&(n+="a"),n},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(e){var t="Можете да направите до "+e.maximum+" ";return e.maximum>1?t+="избора":t+="избор",t},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ms.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ms",[],function(){return{errorLoading:function(){return"Keputusan tidak berjaya dimuatkan."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Sila hapuskan "+t+" aksara"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Sila masukkan "+t+" atau lebih aksara"},loadingMore:function(){return"Sedang memuatkan keputusan…"},maximumSelected:function(e){return"Anda hanya boleh memilih "+e.maximum+" pilihan"},noResults:function(){return"Tiada padanan yang ditemui"},searching:function(){return"Mencari…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=homestead 13 | DB_USERNAME=homestead 14 | DB_PASSWORD=secret 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | 33 | PUSHER_APP_ID= 34 | PUSHER_APP_KEY= 35 | PUSHER_APP_SECRET= 36 | PUSHER_APP_CLUSTER=mt1 37 | 38 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 39 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 40 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/gl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/gl",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Elimine ";return t===1?n+="un carácter":n+=t+" caracteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Engada ";return t===1?n+="un carácter":n+=t+" caracteres",n},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){var t="Só pode ";return e.maximum===1?t+="un elemento":t+=e.maximum+" elementos",t},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /app/Models/UserAddress.php: -------------------------------------------------------------------------------- 1 | belongsTo(User::class); 26 | } 27 | 28 | public function getFullAddressAttribute() 29 | { 30 | return "{$this->province}{$this->city}{$this->district}{$this->address}"; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/da.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Angiv venligst "+t+" tegn mindre";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Angiv venligst "+t+" tegn mere";return n},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var t="Du kan kun vælge "+e.maximum+" emne";return e.maximum!=1&&(t+="r"),t},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/en.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/he.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="נא למחוק ";return t===1?n+="תו אחד":n+=t+" תווים",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="נא להכניס ";return t===1?n+="תו אחד":n+=t+" תווים",n+=" או יותר",n},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(e){var t="באפשרותך לבחור עד ";return e.maximum===1?t+="פריט אחד":t+=e.maximum+" פריטים",t},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/hi.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" अक्षर को हटा दें";return t>1&&(n=t+" अक्षरों को हटा दें "),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="कृपया "+t+" या अधिक अक्षर दर्ज करें";return n},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(e){var t="आप केवल "+e.maximum+" आइटम का चयन कर सकते हैं";return t},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/fa.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="لطفاً "+t+" کاراکتر را حذف نمایید";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="لطفاً تعداد "+t+" کاراکتر یا بیشتر وارد نمایید";return n},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(e){var t="شما تنها می‌توانید "+e.maximum+" آیتم را انتخاب نمایید";return t},noResults:function(){return"هیچ نتیجه‌ای یافت نشد"},searching:function(){return"در حال جستجو..."}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/hr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hr",[],function(){function e(e){var t=" "+e+" znak";return e%10<5&&e%10>0&&(e%100<5||e%100>19)?e%10>1&&(t+="a"):t+="ova",t}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Unesite "+e(n)},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Unesite još "+e(n)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(e){return"Maksimalan broj odabranih stavki je "+e.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/mk.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/mk",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Ве молиме внесете "+e.maximum+" помалку карактер";return e.maximum!==1&&(n+="и"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Ве молиме внесете уште "+e.maximum+" карактер";return e.maximum!==1&&(n+="и"),n},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(e){var t="Можете да изберете само "+e.maximum+" ставк";return e.maximum===1?t+="а":t+="и",t},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/eu.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gutxiago",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gehiago",n},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return e.maximum===1?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/pt-BR.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Apague "+t+" caracter";return t!=1&&(n+="es"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Digite "+t+" ou mais caracteres";return n},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var t="Você só pode selecionar "+e.maximum+" ite";return e.maximum==1?t+="m":t+="ns",t},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /app/Events/OrderReviewed.php: -------------------------------------------------------------------------------- 1 | order = $order; 28 | } 29 | 30 | public function getOrder() 31 | { 32 | return $this->order; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/lv.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/lv",[],function(){function e(e,t,n,r){return e===11?t:e%10===1?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Lūdzu ievadiet par "+n;return r+=" simbol"+e(n,"iem","u","iem"),r+" mazāk"},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Lūdzu ievadiet vēl "+n;return r+=" simbol"+e(n,"us","u","us"),r},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(t){var n="Jūs varat izvēlēties ne vairāk kā "+t.maximum;return n+=" element"+e(t.maximum,"us","u","us"),n},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/pt.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor apague "+t+" ";return n+=t!=1?"caracteres":"carácter",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Introduza "+t+" ou mais caracteres";return n},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var t="Apenas pode seleccionar "+e.maximum+" ";return t+=e.maximum!=1?"itens":"item",t},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/es.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"La carga falló"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor, elimine "+t+" car";return t==1?n+="ácter":n+="acteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Por favor, introduzca "+t+" car";return t==1?n+="ácter":n+="acteres",n},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Models\User::class, function (Faker $faker) { 17 | return [ 18 | 'name' => $faker->name, 19 | 'email' => $faker->unique()->safeEmail, 20 | 'email_verified_at' => now(), 21 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret 22 | 'remember_token' => str_random(10), 23 | ]; 24 | }); 25 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ca.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Si us plau, elimina "+t+" car";return t==1?n+="àcter":n+="àcters",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Si us plau, introdueix "+t+" car";return t==1?n+="àcter":n+="àcters",n},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var t="Només es pot seleccionar "+e.maximum+" element";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /app/Listeners/SendOrderPaidMail.php: -------------------------------------------------------------------------------- 1 | getOrder(); 33 | // 调用 notify 方法来发送通知 34 | $order->user->notify(new OrderPaidNotification($order)); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/it.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Per favore cancella "+t+" caratter";return t!==1?n+="i":n+="e",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Per favore inserisci "+t+" o più caratteri";return n},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var t="Puoi selezionare solo "+e.maximum+" element";return e.maximum!==1?t+="i":t+="o",t},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/fr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Supprimez "+t+" caractère";return t!==1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Saisissez "+t+" caractère";return t!==1&&(n+="s"),n},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){var t="Vous pouvez seulement sélectionner "+e.maximum+" élément";return e.maximum!==1&&(t+="s"),t},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/nl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Gelieve "+t+" karakters te verwijderen";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Gelieve "+t+" of meer karakters in te voeren";return n},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var t=e.maximum==1?"kan":"kunnen",n="Er "+t+" maar "+e.maximum+" item";return e.maximum!=1&&(n+="s"),n+=" worden geselecteerd",n},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ro.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să ștergeți"+t+" caracter";return t!==1&&(n+="e"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vă rugăm să introduceți "+t+"sau mai multe caractere";return n},loadingMore:function(){return"Se încarcă mai multe rezultate…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",e.maximum!==1&&(t+="e"),t},noResults:function(){return"Nu au fost găsite rezultate"},searching:function(){return"Căutare…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/lt.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/lt",[],function(){function e(e,t,n,r){return e%10===1&&(e%100<11||e%100>19)?t:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Pašalinkite "+n+" simbol";return r+=e(n,"į","ius","ių"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Įrašykite dar "+n+" simbol";return r+=e(n,"į","ius","ių"),r},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(t){var n="Jūs galite pasirinkti tik "+t.maximum+" element";return n+=e(t.maximum,"ą","us","ų"),n},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/pl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/pl",[],function(){var e=["znak","znaki","znaków"],t=["element","elementy","elementów"],n=function(t,n){if(t===1)return n[0];if(t>1&&t<=4)return n[1];if(t>=5)return n[2]};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(t){var r=t.input.length-t.maximum;return"Usuń "+r+" "+n(r,e)},inputTooShort:function(t){var r=t.minimum-t.input.length;return"Podaj przynajmniej "+r+" "+n(r,e)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+n(e.maximum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/el.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Παρακαλώ διαγράψτε "+t+" χαρακτήρ";return t==1&&(n+="α"),t!=1&&(n+="ες"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Παρακαλώ συμπληρώστε "+t+" ή περισσότερους χαρακτήρες";return n},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(e){var t="Μπορείτε να επιλέξετε μόνο "+e.maximum+" επιλογ";return e.maximum==1&&(t+="ή"),e.maximum!=1&&(t+="ές"),t},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sr",[],function(){function e(e,t,n,r){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:r}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:function(t){var n=t.input.length-t.maximum,r="Obrišite "+n+" simbol";return r+=e(n,"","a","a"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Ukucajte bar još "+n+" simbol";return r+=e(n,"","a","a"),r},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(t){var n="Možete izabrati samo "+t.maximum+" stavk";return n+=e(t.maximum,"u","e","i"),n},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 21 | UserAddress::class => UserAddressPolicy::class, 22 | Order::class => OrderPolicy::class, 23 | ]; 24 | 25 | /** 26 | * Register any authentication / authorization services. 27 | * 28 | * @return void 29 | */ 30 | public function boot() 31 | { 32 | $this->registerPolicies(); 33 | 34 | // 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sr-Cyrl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sr-Cyrl",[],function(){function e(e,t,n,r){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:r}return{errorLoading:function(){return"Преузимање није успело."},inputTooLong:function(t){var n=t.input.length-t.maximum,r="Обришите "+n+" симбол";return r+=e(n,"","а","а"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Укуцајте бар још "+n+" симбол";return r+=e(n,"","а","а"),r},loadingMore:function(){return"Преузимање још резултата…"},maximumSelected:function(t){var n="Можете изабрати само "+t.maximum+" ставк";return n+=e(t.maximum,"у","е","и"),n},noResults:function(){return"Ништа није пронађено"},searching:function(){return"Претрага…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/uk.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/uk",[],function(){function e(e,t,n,r){return e%100>10&&e%100<15?r:e%10===1?t:e%10>1&&e%10<5?n:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Будь ласка, видаліть "+n+" "+e(t.maximum,"літеру","літери","літер")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Будь ласка, введіть "+t+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(t){return"Ви можете вибрати лише "+t.maximum+" "+e(t.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ru.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ru",[],function(){function e(e,t,n,r){return e%10<5&&e%10>0&&e%100<5||e%100>20?e%10>1?n:t:r}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(t){var n=t.input.length-t.maximum,r="Пожалуйста, введите на "+n+" символ";return r+=e(n,"","a","ов"),r+=" меньше",r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Пожалуйста, введите еще хотя бы "+n+" символ";return r+=e(n,"","a","ов"),r},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(t){var n="Вы можете выбрать не более "+t.maximum+" элемент";return n+=e(t.maximum,"","a","ов"),n},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /app/Http/Requests/UserAddressRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 16 | 'city' => 'required', 17 | 'district' => 'required', 18 | 'address' => 'required', 19 | 'zip' => 'required', 20 | 'contact_name' => 'required', 21 | 'contact_phone' => 'required', 22 | ]; 23 | } 24 | public function attributes() 25 | { 26 | return [ 27 | 'province' => '省', 28 | 'city' => '城市', 29 | 'district' => '地区', 30 | 'address' => '详细地址', 31 | 'zip' => '邮编', 32 | 'contact_name' => '姓名', 33 | 'contact_phone' => '电话', 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Models/Product.php: -------------------------------------------------------------------------------- 1 | 'boolean', // on_sale 是一个布尔类型的字段 23 | ]; 24 | 25 | public function skus() 26 | { 27 | return $this->hasMany(ProductSku::class); 28 | } 29 | 30 | // 访问器,用来输出图片的绝对路径 31 | public function getImageUrlAttribute() 32 | { 33 | // 如果 image 字段本身就已经是完整的 url 就直接返回 34 | if (Str::startsWith($this->attributes['image'], ['http://', 'https://'])) { 35 | return $this->attributes['image']; 36 | } 37 | return \Storage::disk('public')->url($this->attributes['image']); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | $this->load(__DIR__.'/Commands'); 39 | 40 | require base_path('routes/console.php'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Verify Your Email Address') }}
9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, {{ __('click here to request another') }}. 19 |
20 |
21 |
22 |
23 |
24 | @endsection 25 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/laravel-admin/laravel-admin.css: -------------------------------------------------------------------------------- 1 | input.content { 2 | min-height: 0 !important; 3 | padding: 6px 12px !important; 4 | margin: 0 !important; 5 | } 6 | 7 | input.label:empty { 8 | display: inherit !important; 9 | } 10 | 11 | input.label { 12 | display: inherit !important; 13 | padding: 6px 12px !important; 14 | font-size: 14px !important; 15 | font-weight: inherit !important; 16 | line-height: 1.42857143 !important; 17 | color: #555 !important; 18 | text-align: inherit !important; 19 | white-space: inherit !important; 20 | vertical-align: inherit !important; 21 | border-radius: inherit !important; 22 | } 23 | 24 | .box-show { 25 | border-radius: 0 !important; 26 | box-shadow: none !important; 27 | } 28 | 29 | a.editable-empty { 30 | color: #3c8dbc; 31 | border-bottom: none !important; 32 | } 33 | 34 | .form-group > label.asterisk:after { 35 | content: " *"; 36 | color: red; 37 | } 38 | 39 | .mailbox-attachments li { 40 | width: 300px !important; 41 | } 42 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap-fileinput/js/plugins/canvas-to-blob.min.js: -------------------------------------------------------------------------------- 1 | !function(a){"use strict";var b=a.HTMLCanvasElement&&a.HTMLCanvasElement.prototype,c=a.Blob&&function(){try{return Boolean(new Blob)}catch(a){return!1}}(),d=c&&a.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(a){return!1}}(),e=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||a.MSBlobBuilder,f=(c||e)&&a.atob&&a.ArrayBuffer&&a.Uint8Array&&function(a){var b,f,g,h,i,j;for(b=a.split(",")[0].indexOf("base64")>=0?atob(a.split(",")[1]):decodeURIComponent(a.split(",")[1]),f=new ArrayBuffer(b.length),g=new Uint8Array(f),h=0;hheader('Dashboard') 17 | ->description('Description...') 18 | ->row(Dashboard::title()) 19 | ->row(function (Row $row) { 20 | 21 | $row->column(4, function (Column $column) { 22 | $column->append(Dashboard::environment()); 23 | }); 24 | 25 | $row->column(4, function (Column $column) { 26 | $column->append(Dashboard::extensions()); 27 | }); 28 | 29 | $row->column(4, function (Column $column) { 30 | $column->append(Dashboard::dependencies()); 31 | }); 32 | }); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Requests/SendReviewRequest.php: -------------------------------------------------------------------------------- 1 | ['required', 'array'], 21 | 'reviews.*.id' => [ 22 | 'required', 23 | // Rule::exists() 判断用户提交的 ID 是否属于此订单。 24 | Rule::exists('order_items', 'id')->where('order_id', $this->route('order')->id) 25 | ], 26 | 'reviews.*.rating' => ['required', 'integer', 'between:1,5'], 27 | 'reviews.*.review' => ['required'], 28 | ]; 29 | } 30 | 31 | public function attributes() 32 | { 33 | return [ 34 | 'reviews.*.rating' => '评分', 35 | 'reviews.*.review' => '评价', 36 | ]; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2019_02_24_120013_create_cart_items_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->unsignedInteger('user_id'); 19 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 20 | $table->unsignedInteger('product_sku_id'); 21 | $table->foreign('product_sku_id')->references('id')->on('product_skus')->onDelete('cascade'); 22 | $table->unsignedInteger('amount'); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('cart_items'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2019_02_24_085813_create_user_favorite_products_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->unsignedInteger('user_id'); 19 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 20 | $table->unsignedInteger('product_id'); 21 | $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('user_favorite_products'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /database/migrations/2019_02_23_072956_create_product_skus_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('title'); 19 | $table->string('description'); 20 | $table->decimal('price', 10, 2); 21 | $table->unsignedInteger('stock'); 22 | $table->unsignedInteger('product_id'); 23 | $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('product_skus'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Events/OrderPaid.php: -------------------------------------------------------------------------------- 1 | order = $order; 27 | } 28 | 29 | /** 30 | * Get the channels the event should broadcast on. 31 | * 32 | * @return \Illuminate\Broadcasting\Channel|array 33 | */ 34 | public function broadcastOn() 35 | { 36 | return new PrivateChannel('channel-name'); 37 | } 38 | 39 | public function getOrder() 40 | { 41 | return $this->order; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Models/ProductSku.php: -------------------------------------------------------------------------------- 1 | belongsTo(Product::class); 21 | } 22 | 23 | // 减库存 24 | public function decreaseStock($amount) 25 | { 26 | if ($amount < 0) { 27 | throw new InternalException('减库存不可小于0'); 28 | } 29 | // $this->newQuery() 方法来获取数据库的查询构造器, 30 | // ORM 查询构造器的写操作只会返回 true 或者 false 代表 SQL 是否执行成功, 31 | // 而数据库查询构造器的写操作则会返回影响的行数。 32 | 33 | return $this->newQuery()->where('id', $this->id)->where('stock', '>=', $amount)->decrement('stock', $amount); 34 | } 35 | 36 | // 添加库存 37 | public function addStock($amount) 38 | { 39 | if ($amount < 0) { 40 | throw new InternalException('加库存不可小于0'); 41 | } 42 | $this->increment('stock', $amount); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sk.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím, zadajte o jeden znak menej":n>=2&&n<=4?"Prosím, zadajte o "+e[n](!0)+" znaky menej":"Prosím, zadajte o "+n+" znakov menej"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím, zadajte ešte jeden znak":n<=4?"Prosím, zadajte ešte ďalšie "+e[n](!0)+" znaky":"Prosím, zadajte ešte ďalších "+n+" znakov"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){return t.maximum==1?"Môžete zvoliť len jednu položku":t.maximum>=2&&t.maximum<=4?"Môžete zvoliť najviac "+e[t.maximum](!1)+" položky":"Môžete zvoliť najviac "+t.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /database/migrations/2019_02_23_072923_create_products_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('title'); 19 | $table->text('description'); 20 | $table->string('image'); 21 | $table->boolean('on_sale')->default(true); 22 | $table->float('rating')->default(5); 23 | $table->unsignedInteger('sold_count')->default(0); 24 | $table->unsignedInteger('review_count')->default(0); 25 | $table->decimal('price', 10, 2); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('products'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/cs.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím zadejte o jeden znak méně":n<=4?"Prosím zadejte o "+e(n,!0)+" znaky méně":"Prosím zadejte o "+n+" znaků méně"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím zadejte ještě jeden znak":n<=4?"Prosím zadejte ještě další "+e(n,!0)+" znaky":"Prosím zadejte ještě dalších "+n+" znaků"},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return n==1?"Můžete zvolit jen jednu položku":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky":"Můžete zvolit maximálně "+n+" položek"},noResults:function(){return"Nenalezeny žádné položky"},searching:function(){return"Vyhledávání…"}}}),{define:e.define,require:e.require}})(); -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /database/factories/CouponCodeFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Models\CouponCode::class, function (Faker $faker) { 6 | // 首先随机取得一个类型 7 | $type = $faker->randomElement(array_keys(App\Models\CouponCode::$typeMap)); 8 | // 根据取得的类型生成对应折扣 9 | $value = $type === App\Models\CouponCode::TYPE_FIXED ? random_int(1, 200) : random_int(1, 50); 10 | 11 | // 如果是固定金额,则最低订单金额必须要比优惠金额高 0.01 元 12 | if ($type === App\Models\CouponCode::TYPE_FIXED) { 13 | $minAmount = $value + 0.01; 14 | } else { 15 | // 如果是百分比折扣,有 50% 概率不需要最低订单金额 16 | if (random_int(0, 100) < 50) { 17 | $minAmount = 0; 18 | } else { 19 | $minAmount = random_int(100, 1000); 20 | } 21 | } 22 | 23 | return [ 24 | 'name' => join(' ', $faker->words), // 随机生成名称 25 | 'code' => App\Models\CouponCode::findAvailableCode(), // 调用优惠码生成方法 26 | 'type' => $type, 27 | 'value' => $value, 28 | 'total' => 1000, 29 | 'used' => 0, 30 | 'min_amount' => $minAmount, 31 | 'not_before' => null, 32 | 'not_after' => null, 33 | 'enabled' => true, 34 | ]; 35 | 36 | }); 37 | -------------------------------------------------------------------------------- /app/Services/CartService.php: -------------------------------------------------------------------------------- 1 | cartItems()->with(['productSku.product'])->get(); 13 | } 14 | 15 | public function add($skuId, $amount) 16 | { 17 | $user = Auth::user(); 18 | // 从数据库中查询该商品是否已经在购物车中 19 | if ($item = $user->cartItems()->where('product_sku_id', $skuId)->first()) { 20 | // 如果存在则直接叠加商品数量 21 | $item->update([ 22 | 'amount' => $item->amount + $amount, 23 | ]); 24 | } else { 25 | // 否则创建一个新的购物车记录 26 | $item = new CartItem(['amount' => $amount]); 27 | $item->user()->associate($user); 28 | $item->productSku()->associate($skuId); 29 | $item->save(); 30 | } 31 | 32 | return $item; 33 | } 34 | 35 | public function remove($skuIds) 36 | { 37 | // 可以传单个 ID,也可以传 ID 数组 38 | if (!is_array($skuIds)) { 39 | $skuIds = [$skuIds]; 40 | } 41 | Auth::user()->cartItems()->whereIn('product_sku_id', $skuIds)->delete(); 42 | } 43 | } -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Unit 14 | 15 | 16 | 17 | ./tests/Feature 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /database/migrations/2019_03_06_171448_orders_add_coupon_code_id.php: -------------------------------------------------------------------------------- 1 | unsignedInteger('coupon_code_id')->nullable()->after('paid_at'); 21 | $table->foreign('coupon_code_id')->references('id')->on('coupon_codes')->onDelete('set null'); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::table('orders', function (Blueprint $table) { 33 | // dropForeign() 删除外键关联,要早于 dropColumn() 删除字段调用,否则数据库会报错。 34 | $table->dropForeign(['coupon_code_id']); 35 | $table->dropColumn('coupon_code_id'); 36 | }); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 38 | $this->middleware('signed')->only('verify'); 39 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | hasMany(UserAddress::class); 35 | } 36 | 37 | // 与商品的关联 38 | public function favoriteProducts() 39 | { 40 | return $this->belongsToMany(Product::class, 'user_favorite_products') 41 | ->withTimestamps() 42 | ->orderBy('user_favorite_products.created_at', 'desc'); 43 | } 44 | 45 | // 与购物车关联 46 | public function cartItems() 47 | { 48 | return $this->hasMany(CartItem::class); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /database/migrations/2019_03_06_165756_create_coupon_codes_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('code')->unique(); 20 | $table->string('type'); 21 | $table->decimal('value'); 22 | $table->unsignedInteger('total'); 23 | $table->unsignedInteger('used')->default(0); 24 | $table->decimal('min_amount', 10, 2); 25 | $table->datetime('not_before')->nullable(); 26 | $table->datetime('not_after')->nullable(); 27 | $table->boolean('enabled'); 28 | $table->timestamps(); 29 | }); 30 | } 31 | 32 | /** 33 | * Reverse the migrations. 34 | * 35 | * @return void 36 | */ 37 | public function down() 38 | { 39 | Schema::dropIfExists('coupon_codes'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 26 | SendEmailVerificationNotification::class, 27 | ], 28 | OrderPaid::class => [ 29 | UpdateProductSoldCount::class, 30 | SendOrderPaidMail::class, 31 | ], 32 | OrderReviewed::class => [ 33 | UpdateProductRating::class, 34 | ], 35 | ]; 36 | 37 | /** 38 | * Register any events for your application. 39 | * 40 | * @return void 41 | */ 42 | public function boot() 43 | { 44 | parent::boot(); 45 | 46 | // 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /database/migrations/2019_02_20_094023_create_user_addresses_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->unsignedInteger('user_id'); 19 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 20 | $table->string('province'); 21 | $table->string('city'); 22 | $table->string('district'); 23 | $table->string('address'); 24 | $table->unsignedInteger('zip'); 25 | $table->string('contact_name'); 26 | $table->string('contact_phone'); 27 | $table->dateTime('last_used_at')->nullable(); 28 | $table->timestamps(); 29 | }); 30 | } 31 | 32 | /** 33 | * Reverse the migrations. 34 | * 35 | * @return void 36 | */ 37 | public function down() 38 | { 39 | Schema::dropIfExists('user_addresses'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * First we will load all of this project's JavaScript dependencies which 4 | * includes Vue and other libraries. It is a great starting point when 5 | * building robust, powerful web applications using Vue and Laravel. 6 | */ 7 | 8 | require('./bootstrap'); 9 | 10 | window.Vue = require('vue'); 11 | 12 | /** 13 | * The following block of code may be used to automatically register your 14 | * Vue components. It will recursively scan this directory for the Vue 15 | * components and automatically register them with their "basename". 16 | * 17 | * Eg. ./components/ExampleComponent.vue -> 18 | */ 19 | 20 | // const files = require.context('./', true, /\.vue$/i) 21 | // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) 22 | 23 | Vue.component('example-component', require('./components/ExampleComponent.vue').default); 24 | 25 | /** 26 | * Next, we will create a fresh Vue application instance and attach it to 27 | * the page. Then, you may begin adding components to this application 28 | * or customize the JavaScript scaffolding to fit your unique needs. 29 | */ 30 | // 此处需在引入 Vue 之后引入 31 | require('./components/SelectDistrict'); 32 | require('./components/UserAddressesCreateAndEdit'); 33 | const app = new Vue({ 34 | el: '#app' 35 | }); 36 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'ses' => [ 24 | 'key' => env('SES_KEY'), 25 | 'secret' => env('SES_SECRET'), 26 | 'region' => env('SES_REGION', 'us-east-1'), 27 | ], 28 | 29 | 'sparkpost' => [ 30 | 'secret' => env('SPARKPOST_SECRET'), 31 | ], 32 | 33 | 'stripe' => [ 34 | 'model' => App\Models\User::class, 35 | 'key' => env('STRIPE_KEY'), 36 | 'secret' => env('STRIPE_SECRET'), 37 | 'webhook' => [ 38 | 'secret' => env('STRIPE_WEBHOOK_SECRET'), 39 | 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300), 40 | ], 41 | ], 42 | 43 | ]; 44 | -------------------------------------------------------------------------------- /database/factories/ProductFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Models\Product::class, function (Faker $faker) { 6 | $image = $faker->randomElement([ 7 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/7kG1HekGK6.jpg", 8 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/1B3n0ATKrn.jpg", 9 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/r3BNRe4zXG.jpg", 10 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/C0bVuKB2nt.jpg", 11 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/82Wf2sg8gM.jpg", 12 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/nIvBAQO5Pj.jpg", 13 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/XrtIwzrxj7.jpg", 14 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/uYEHCJ1oRp.jpg", 15 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/2JMRaFwRpo.jpg", 16 | "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/pa7DrV43Mw.jpg", 17 | ]); 18 | return [ 19 | 'title' => $faker->word, 20 | 'description' => $faker->sentence, 21 | 'image' => $image, 22 | 'on_sale' => true, 23 | 'rating' => $faker->numberBetween(0, 5), 24 | 'sold_count' => 0, 25 | 'review_count' => 0, 26 | 'price' => 0, 27 | ]; 28 | }); 29 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.18", 14 | "bootstrap": "^4.0.0", 15 | "cross-env": "^5.1", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^4.0.7", 18 | "lodash": "^4.17.5", 19 | "popper.js": "^1.12", 20 | "resolve-url-loader": "^2.3.1", 21 | "sass": "^1.15.2", 22 | "sass-loader": "^7.1.0", 23 | "vue": "^2.5.17", 24 | "vue-template-compiler": "^2.6.6" 25 | }, 26 | "dependencies": { 27 | "@fortawesome/fontawesome-free": "^5.7.2", 28 | "china-area-data": "^4.0.0", 29 | "sweetalert": "^2.1.2" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Listeners/UpdateProductRating.php: -------------------------------------------------------------------------------- 1 | getOrder()->items()->with(['product'])->get(); 25 | foreach ($items as $item) { 26 | $result = OrderItem::query() 27 | ->where('product_id', $item->product_id) 28 | ->whereHas('order', function ($query) { 29 | $query->whereNotNull('paid_at'); 30 | }) 31 | // Laravel 在构建 SQL 的时候如果遇到 DB::raw() 就会把 DB::raw() 的参数原样拼接到 SQL 里。 32 | ->first([ 33 | DB::raw('count(*) as review_count'), 34 | DB::raw('avg(rating) as rating') 35 | ]); 36 | // 更新商品的评分和评价数 37 | $item->product->update([ 38 | 'rating' => $result->rating, 39 | 'review_count' => $result->review_count, 40 | ]); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/Http/Requests/AddCartRequest.php: -------------------------------------------------------------------------------- 1 | [ 19 | 'required', 20 | function ($attribute, $value, $fail) { 21 | if (!$sku = ProductSku::find($value)) { 22 | return $fail('该商品不存在'); 23 | } 24 | if (!$sku->product->on_sale) { 25 | return $fail('该商品未上架'); 26 | } 27 | if ($sku->stock === 0) { 28 | return $fail('该商品已售完'); 29 | } 30 | 31 | if ($this->input('amount') > 0 && $sku->stock < $this->input('amount')) { 32 | return $fail('该商品库存不足'); 33 | } 34 | } 35 | ], 36 | 'amount' => ['required', 'integer', 'min:1'], 37 | ]; 38 | } 39 | 40 | public function attributes() 41 | { 42 | return [ 43 | 'amount' => '商品数量' 44 | ]; 45 | } 46 | 47 | public function messages() 48 | { 49 | return [ 50 | 'sku_id.required' => '请选择商品', 51 | ]; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/Listeners/UpdateProductSoldCount.php: -------------------------------------------------------------------------------- 1 | getOrder(); 34 | // 预加载商品数据 35 | $order->load('items.product'); 36 | // 循环遍历订单的商品 37 | foreach ($order->items as $item) { 38 | $product = $item->product; 39 | // 计算对应商品的销量 40 | $soldCount = OrderItem::query() 41 | ->where('product_id', $product->id) 42 | ->whereHas('order', function ($query) { 43 | $query->whereNotNull('paid_at'); // 关联的订单状态是已支付 44 | })->sum('amount'); 45 | // 更新商品销量 46 | $product->update([ 47 | 'sold_count' => $soldCount, 48 | ]); 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /database/migrations/2019_02_24_215803_create_order_items_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->unsignedInteger('order_id'); 19 | $table->foreign('order_id')->references('id')->on('orders')->onDelete('cascade'); 20 | $table->unsignedInteger('product_id'); 21 | $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); 22 | $table->unsignedInteger('product_sku_id'); 23 | $table->foreign('product_sku_id')->references('id')->on('product_skus')->onDelete('cascade'); 24 | $table->unsignedInteger('amount'); 25 | $table->decimal('price', 10, 2); 26 | $table->unsignedInteger('rating')->nullable(); 27 | $table->text('review')->nullable(); 28 | $table->timestamp('reviewed_at')->nullable(); 29 | }); 30 | } 31 | 32 | /** 33 | * Reverse the migrations. 34 | * 35 | * @return void 36 | */ 37 | public function down() 38 | { 39 | Schema::dropIfExists('order_items'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin flat skin, black 2 | ----------------------------------- */ 3 | .icheckbox_flat, 4 | .iradio_flat { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(flat.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat, 51 | .iradio_flat { 52 | background-image: url(flat@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /app/Jobs/CloseOrder.php: -------------------------------------------------------------------------------- 1 | order = $order; 27 | // 设置延迟的时间,delay() 方法的参数代表多少秒之后执行 28 | $this->delay($delay); 29 | } 30 | 31 | /** 32 | * Execute the job. 33 | * 34 | * @return void 35 | */ 36 | // 定义这个任务类具体的执行逻辑 37 | // 当队列处理器从队列中取出任务时,会调用 handle() 方法 38 | public function handle() 39 | { 40 | // 判断对应的订单是否已经被支付 41 | // 如果已经支付则不需要关闭订单,直接退出 42 | if ($this->order->paid_at) { 43 | return; 44 | } 45 | // 通过事务执行 sql 46 | \DB::transaction(function() { 47 | // 将订单的 closed 字段标记为 true, 即关闭订单 48 | $this->order->update(['closed' => true]); 49 | // 循环遍历订单中的商品 SKU ,将订单中的数量加回到 SKU 的库存中去 50 | foreach ($this->order->items as $item) { 51 | $item->productSku->addStock($item->amount); 52 | } 53 | 54 | if ($this->order->couponCode) { 55 | $this->order->couponCode->changeUsed(false); 56 | } 57 | }); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, red 2 | ----------------------------------- */ 3 | .icheckbox_flat-red, 4 | .iradio_flat-red { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(red.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-red { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-red.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-red.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-red.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-red { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-red.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-red.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-red.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-red, 51 | .iradio_flat-red { 52 | background-image: url(red@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/nestable/nestable.css: -------------------------------------------------------------------------------- 1 | .dd { position: relative; display: block; margin: 10px; padding: 0; list-style: none; font-size: 13px; line-height: 20px; } 2 | 3 | .dd-list { display: block; position: relative; margin: 0; padding: 0; list-style: none; } 4 | .dd-list .dd-list { padding-left: 30px; } 5 | .dd-collapsed .dd-list { display: none; } 6 | 7 | .dd-item, 8 | .dd-empty, 9 | .dd-placeholder { display: block; position: relative; margin: 0; padding: 0;} 10 | 11 | .dd-handle { 12 | display: block; 13 | 14 | margin: 1px 0; 15 | padding: 8px 10px; 16 | color: #333; 17 | text-decoration: none; 18 | border: 1px solid #ddd; 19 | background: #fff; 20 | } 21 | .dd-handle:hover { color: #2ea8e5; background: #fff; } 22 | 23 | .dd-item > button { display: block; position: relative; cursor: pointer; float: left; width: 25px; height: 20px; margin: 5px 0; padding: 0; text-indent: 100%; white-space: nowrap; overflow: hidden; border: 0; background: transparent; font-size: 12px; line-height: 1; text-align: center; font-weight: bold; } 24 | .dd-item > button:before { content: '+'; display: block; position: absolute; width: 100%; text-align: center; text-indent: 0; } 25 | .dd-item > button[data-action="collapse"]:before { content: '-'; } 26 | 27 | .dd-placeholder { margin: 5px 0; padding: 0; min-height: 30px; background: #f2fbff; border: 1px dashed #b6bcbf; box-sizing: border-box; -moz-box-sizing: border-box; } 28 | 29 | .dd-dragel { position: absolute; pointer-events: none; z-index: 9999; } 30 | .dd-dragel > .dd-item .dd-handle { margin-top: 0; } 31 | .dd-dragel .dd-handle { 32 | -webkit-box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1); 33 | box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1); 34 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, aero 2 | ----------------------------------- */ 3 | .icheckbox_flat-aero, 4 | .iradio_flat-aero { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(aero.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-aero { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-aero.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-aero.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-aero.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-aero { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-aero.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-aero.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-aero.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-aero, 51 | .iradio_flat-aero { 52 | background-image: url(aero@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, blue 2 | ----------------------------------- */ 3 | .icheckbox_flat-blue, 4 | .iradio_flat-blue { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(blue.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-blue { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-blue.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-blue.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-blue.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-blue { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-blue.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-blue.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-blue.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-blue, 51 | .iradio_flat-blue { 52 | background-image: url(blue@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, grey 2 | ----------------------------------- */ 3 | .icheckbox_flat-grey, 4 | .iradio_flat-grey { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(grey.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-grey { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-grey.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-grey.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-grey.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-grey { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-grey.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-grey.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-grey.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-grey, 51 | .iradio_flat-grey { 52 | background-image: url(grey@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, pink 2 | ----------------------------------- */ 3 | .icheckbox_flat-pink, 4 | .iradio_flat-pink { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(pink.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-pink { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-pink.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-pink.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-pink.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-pink { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-pink.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-pink.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-pink.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-pink, 51 | .iradio_flat-pink { 52 | background-image: url(pink@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Futurico skin 2 | ----------------------------------- */ 3 | .icheckbox_futurico, 4 | .iradio_futurico { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 16px; 11 | height: 17px; 12 | background: url(futurico.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_futurico { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_futurico.checked { 21 | background-position: -18px 0; 22 | } 23 | .icheckbox_futurico.disabled { 24 | background-position: -36px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_futurico.checked.disabled { 28 | background-position: -54px 0; 29 | } 30 | 31 | .iradio_futurico { 32 | background-position: -72px 0; 33 | } 34 | .iradio_futurico.checked { 35 | background-position: -90px 0; 36 | } 37 | .iradio_futurico.disabled { 38 | background-position: -108px 0; 39 | cursor: default; 40 | } 41 | .iradio_futurico.checked.disabled { 42 | background-position: -126px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_futurico, 51 | .iradio_futurico { 52 | background-image: url(futurico@2x.png); 53 | -webkit-background-size: 144px 19px; 54 | background-size: 144px 19px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, green 2 | ----------------------------------- */ 3 | .icheckbox_flat-green, 4 | .iradio_flat-green { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(green.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-green { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-green.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-green.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-green.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-green { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-green.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-green.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-green.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-green, 51 | .iradio_flat-green { 52 | background-image: url(green@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, orange 2 | ----------------------------------- */ 3 | .icheckbox_flat-orange, 4 | .iradio_flat-orange { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(orange.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-orange { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-orange.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-orange.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-orange.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-orange { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-orange.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-orange.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-orange.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-orange, 51 | .iradio_flat-orange { 52 | background-image: url(orange@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, purple 2 | ----------------------------------- */ 3 | .icheckbox_flat-purple, 4 | .iradio_flat-purple { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(purple.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-purple { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-purple.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-purple.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-purple.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-purple { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-purple.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-purple.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-purple.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-purple, 51 | .iradio_flat-purple { 52 | background-image: url(purple@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Flat skin, yellow 2 | ----------------------------------- */ 3 | .icheckbox_flat-yellow, 4 | .iradio_flat-yellow { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 20px; 11 | height: 20px; 12 | background: url(yellow.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_flat-yellow { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_flat-yellow.checked { 21 | background-position: -22px 0; 22 | } 23 | .icheckbox_flat-yellow.disabled { 24 | background-position: -44px 0; 25 | cursor: default; 26 | } 27 | .icheckbox_flat-yellow.checked.disabled { 28 | background-position: -66px 0; 29 | } 30 | 31 | .iradio_flat-yellow { 32 | background-position: -88px 0; 33 | } 34 | .iradio_flat-yellow.checked { 35 | background-position: -110px 0; 36 | } 37 | .iradio_flat-yellow.disabled { 38 | background-position: -132px 0; 39 | cursor: default; 40 | } 41 | .iradio_flat-yellow.checked.disabled { 42 | background-position: -154px 0; 43 | } 44 | 45 | /* Retina support */ 46 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 47 | only screen and (-moz-min-device-pixel-ratio: 1.5), 48 | only screen and (-o-min-device-pixel-ratio: 3/2), 49 | only screen and (min-device-pixel-ratio: 1.5) { 50 | .icheckbox_flat-yellow, 51 | .iradio_flat-yellow { 52 | background-image: url(yellow@2x.png); 53 | -webkit-background-size: 176px 22px; 54 | background-size: 176px 22px; 55 | } 56 | } -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /app/Admin/routes.php: -------------------------------------------------------------------------------- 1 | config('admin.route.prefix'), 9 | 'namespace' => config('admin.route.namespace'), 10 | 'middleware' => config('admin.route.middleware'), 11 | ], function (Router $router) { 12 | 13 | $router->get('/', 'HomeController@index'); 14 | $router->get('users', 'UsersController@index'); 15 | $router->get('products', 'ProductsController@index'); 16 | $router->get('products/create', 'ProductsController@create'); 17 | $router->post('products', 'ProductsController@store'); 18 | $router->get('products/{id}/edit', 'ProductsController@edit'); 19 | $router->put('products/{id}', 'ProductsController@update'); 20 | 21 | // 订单列表路由 22 | $router->get('orders', 'OrdersController@index')->name('admin.orders.index'); 23 | // 订单详情路由 24 | $router->get('orders/{order}', 'OrdersController@show')->name('admin.orders.show'); 25 | // 发货路由 26 | $router->post('orders/{order}/ship', 'OrdersController@ship')->name('admin.orders.ship'); 27 | // 拒绝退款路由 28 | $router->post('orders/{order}/refund', 'OrdersController@handleRefund')->name('admin.orders.handle_refund'); 29 | 30 | // 优惠券列表路由 31 | $router->get('coupon_codes', 'CouponCodesController@index'); 32 | // 提交优惠券新增时的数据 33 | $router->post('coupon_codes', 'CouponCodesController@store'); 34 | // 新增优惠券的页面路由 35 | $router->get('coupon_codes/create', 'CouponCodesController@create'); 36 | // 编辑优惠券路由 37 | $router->get('coupon_codes/{id}/edit', 'CouponCodesController@edit'); 38 | $router->put('coupon_codes/{id}', 'CouponCodesController@update'); 39 | 40 | // 删除优惠券 41 | $router->delete('coupon_codes/{id}', 'CouponCodesController@destroy'); 42 | }); 43 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/nprogress/nprogress.css: -------------------------------------------------------------------------------- 1 | /* Make clicks pass-through */ 2 | #nprogress { 3 | pointer-events: none; 4 | } 5 | 6 | #nprogress .bar { 7 | background: #dd441f; 8 | 9 | position: fixed; 10 | z-index: 1031; 11 | top: 0; 12 | left: 0; 13 | 14 | width: 100%; 15 | height: 2px; 16 | } 17 | 18 | /* Fancy blur effect */ 19 | #nprogress .peg { 20 | display: block; 21 | position: absolute; 22 | right: 0px; 23 | width: 100px; 24 | height: 100%; 25 | box-shadow: 0 0 10px #29d, 0 0 5px #29d; 26 | opacity: 1.0; 27 | 28 | -webkit-transform: rotate(3deg) translate(0px, -4px); 29 | -ms-transform: rotate(3deg) translate(0px, -4px); 30 | transform: rotate(3deg) translate(0px, -4px); 31 | } 32 | 33 | /* Remove these to get rid of the spinner */ 34 | #nprogress .spinner { 35 | display: block; 36 | position: fixed; 37 | z-index: 1031; 38 | top: 15px; 39 | right: 15px; 40 | } 41 | 42 | #nprogress .spinner-icon { 43 | width: 18px; 44 | height: 18px; 45 | box-sizing: border-box; 46 | 47 | border: solid 2px transparent; 48 | border-top-color: #29d; 49 | border-left-color: #29d; 50 | border-radius: 50%; 51 | 52 | -webkit-animation: nprogress-spinner 400ms linear infinite; 53 | animation: nprogress-spinner 400ms linear infinite; 54 | } 55 | 56 | .nprogress-custom-parent { 57 | overflow: hidden; 58 | position: relative; 59 | } 60 | 61 | .nprogress-custom-parent #nprogress .spinner, 62 | .nprogress-custom-parent #nprogress .bar { 63 | position: absolute; 64 | } 65 | 66 | @-webkit-keyframes nprogress-spinner { 67 | 0% { -webkit-transform: rotate(0deg); } 68 | 100% { -webkit-transform: rotate(360deg); } 69 | } 70 | @keyframes nprogress-spinner { 71 | 0% { transform: rotate(0deg); } 72 | 100% { transform: rotate(360deg); } 73 | } 74 | 75 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap-duallistbox/dist/bootstrap-duallistbox.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Bootstrap Duallistbox - v3.0.6 3 | * A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices. 4 | * http://www.virtuosoft.eu/code/bootstrap-duallistbox/ 5 | * 6 | * Made by István Ujj-Mészáros 7 | * Under Apache License v2.0 License 8 | */ 9 | 10 | .bootstrap-duallistbox-container .buttons{width:100%;margin-bottom:-1px}.bootstrap-duallistbox-container label{display:block}.bootstrap-duallistbox-container .info{display:inline-block;margin-bottom:5px;font-size:11px}.bootstrap-duallistbox-container .clear1,.bootstrap-duallistbox-container .clear2{display:none;font-size:10px}.bootstrap-duallistbox-container .box1.filtered .clear1,.bootstrap-duallistbox-container .box2.filtered .clear2{display:inline-block}.bootstrap-duallistbox-container .move,.bootstrap-duallistbox-container .remove{width:60%}.bootstrap-duallistbox-container .btn-group .btn{border-bottom-left-radius:0;border-bottom-right-radius:0}.bootstrap-duallistbox-container select{border-top-left-radius:0;border-top-right-radius:0}.bootstrap-duallistbox-container .moveall,.bootstrap-duallistbox-container .removeall{width:40%}.bootstrap-duallistbox-container.bs2compatible .btn-group>.btn+.btn{margin-left:0}.bootstrap-duallistbox-container select{width:100%;height:300px;padding:0}.bootstrap-duallistbox-container .filter{display:inline-block;width:100%;height:31px;margin:0 0 5px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-duallistbox-container .filter.placeholder{color:#aaa}.bootstrap-duallistbox-container.moveonselect .move,.bootstrap-duallistbox-container.moveonselect .remove{display:none}.bootstrap-duallistbox-container.moveonselect .moveall,.bootstrap-duallistbox-container.moveonselect .removeall{width:100%} -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'encrypted' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Square skin, black 2 | ----------------------------------- */ 3 | .icheckbox_square, 4 | .iradio_square { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 22px; 11 | height: 22px; 12 | background: url(square.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_square { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_square.hover { 21 | background-position: -24px 0; 22 | } 23 | .icheckbox_square.checked { 24 | background-position: -48px 0; 25 | } 26 | .icheckbox_square.disabled { 27 | background-position: -72px 0; 28 | cursor: default; 29 | } 30 | .icheckbox_square.checked.disabled { 31 | background-position: -96px 0; 32 | } 33 | 34 | .iradio_square { 35 | background-position: -120px 0; 36 | } 37 | .iradio_square.hover { 38 | background-position: -144px 0; 39 | } 40 | .iradio_square.checked { 41 | background-position: -168px 0; 42 | } 43 | .iradio_square.disabled { 44 | background-position: -192px 0; 45 | cursor: default; 46 | } 47 | .iradio_square.checked.disabled { 48 | background-position: -216px 0; 49 | } 50 | 51 | /* Retina support */ 52 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 53 | only screen and (-moz-min-device-pixel-ratio: 1.5), 54 | only screen and (-o-min-device-pixel-ratio: 3/2), 55 | only screen and (min-device-pixel-ratio: 1.5) { 56 | .icheckbox_square, 57 | .iradio_square { 58 | background-image: url(square@2x.png); 59 | -webkit-background-size: 240px 24px; 60 | background-size: 240px 24px; 61 | } 62 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/all.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin skins 2 | ----------------------------------- */ 3 | @import url("minimal/_all.css"); 4 | /* 5 | @import url("minimal/minimal.css"); 6 | @import url("minimal/red.css"); 7 | @import url("minimal/green.css"); 8 | @import url("minimal/blue.css"); 9 | @import url("minimal/aero.css"); 10 | @import url("minimal/grey.css"); 11 | @import url("minimal/orange.css"); 12 | @import url("minimal/yellow.css"); 13 | @import url("minimal/pink.css"); 14 | @import url("minimal/purple.css"); 15 | */ 16 | 17 | @import url("square/_all.css"); 18 | /* 19 | @import url("square/square.css"); 20 | @import url("square/red.css"); 21 | @import url("square/green.css"); 22 | @import url("square/blue.css"); 23 | @import url("square/aero.css"); 24 | @import url("square/grey.css"); 25 | @import url("square/orange.css"); 26 | @import url("square/yellow.css"); 27 | @import url("square/pink.css"); 28 | @import url("square/purple.css"); 29 | */ 30 | 31 | @import url("flat/_all.css"); 32 | /* 33 | @import url("flat/flat.css"); 34 | @import url("flat/red.css"); 35 | @import url("flat/green.css"); 36 | @import url("flat/blue.css"); 37 | @import url("flat/aero.css"); 38 | @import url("flat/grey.css"); 39 | @import url("flat/orange.css"); 40 | @import url("flat/yellow.css"); 41 | @import url("flat/pink.css"); 42 | @import url("flat/purple.css"); 43 | */ 44 | 45 | @import url("line/_all.css"); 46 | /* 47 | @import url("line/line.css"); 48 | @import url("line/red.css"); 49 | @import url("line/green.css"); 50 | @import url("line/blue.css"); 51 | @import url("line/aero.css"); 52 | @import url("line/grey.css"); 53 | @import url("line/orange.css"); 54 | @import url("line/yellow.css"); 55 | @import url("line/pink.css"); 56 | @import url("line/purple.css"); 57 | */ 58 | 59 | @import url("polaris/polaris.css"); 60 | 61 | @import url("futurico/futurico.css"); -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::middleware('web') 55 | ->namespace($this->namespace) 56 | ->group(base_path('routes/web.php')); 57 | } 58 | 59 | /** 60 | * Define the "api" routes for the application. 61 | * 62 | * These routes are typically stateless. 63 | * 64 | * @return void 65 | */ 66 | protected function mapApiRoutes() 67 | { 68 | Route::prefix('api') 69 | ->middleware('api') 70 | ->namespace($this->namespace) 71 | ->group(base_path('routes/api.php')); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Polaris skin 2 | ----------------------------------- */ 3 | .icheckbox_polaris, 4 | .iradio_polaris { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 29px; 11 | height: 29px; 12 | background: url(polaris.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_polaris { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_polaris.hover { 21 | background-position: -31px 0; 22 | } 23 | .icheckbox_polaris.checked { 24 | background-position: -62px 0; 25 | } 26 | .icheckbox_polaris.disabled { 27 | background-position: -93px 0; 28 | cursor: default; 29 | } 30 | .icheckbox_polaris.checked.disabled { 31 | background-position: -124px 0; 32 | } 33 | 34 | .iradio_polaris { 35 | background-position: -155px 0; 36 | } 37 | .iradio_polaris.hover { 38 | background-position: -186px 0; 39 | } 40 | .iradio_polaris.checked { 41 | background-position: -217px 0; 42 | } 43 | .iradio_polaris.disabled { 44 | background-position: -248px 0; 45 | cursor: default; 46 | } 47 | .iradio_polaris.checked.disabled { 48 | background-position: -279px 0; 49 | } 50 | 51 | /* Retina support */ 52 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 53 | only screen and (-moz-min-device-pixel-ratio: 1.5), 54 | only screen and (-o-min-device-pixel-ratio: 3/2), 55 | only screen and (min-device-pixel-ratio: 1.5) { 56 | .icheckbox_polaris, 57 | .iradio_polaris { 58 | background-image: url(polaris@2x.png); 59 | -webkit-background-size: 310px 31px; 60 | background-size: 310px 31px; 61 | } 62 | } --------------------------------------------------------------------------------