├── public ├── favicon.ico ├── robots.txt ├── vendor │ ├── horizon │ │ ├── css │ │ │ └── app.css.map │ │ ├── img │ │ │ └── favicon.png │ │ └── mix-manifest.json │ └── laravel-admin │ │ ├── AdminLTE │ │ ├── plugins │ │ │ ├── input-mask │ │ │ │ └── phone-codes │ │ │ │ │ └── readme.txt │ │ │ ├── iCheck │ │ │ │ ├── flat │ │ │ │ │ ├── red.png │ │ │ │ │ ├── aero.png │ │ │ │ │ ├── blue.png │ │ │ │ │ ├── flat.png │ │ │ │ │ ├── green.png │ │ │ │ │ ├── grey.png │ │ │ │ │ ├── pink.png │ │ │ │ │ ├── aero@2x.png │ │ │ │ │ ├── blue@2x.png │ │ │ │ │ ├── flat@2x.png │ │ │ │ │ ├── green@2x.png │ │ │ │ │ ├── grey@2x.png │ │ │ │ │ ├── orange.png │ │ │ │ │ ├── pink@2x.png │ │ │ │ │ ├── purple.png │ │ │ │ │ ├── red@2x.png │ │ │ │ │ ├── yellow.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 │ │ │ │ │ ├── orange.png │ │ │ │ │ ├── pink.png │ │ │ │ │ ├── purple.png │ │ │ │ │ ├── red@2x.png │ │ │ │ │ ├── square.png │ │ │ │ │ ├── yellow.png │ │ │ │ │ ├── aero@2x.png │ │ │ │ │ ├── blue@2x.png │ │ │ │ │ ├── green@2x.png │ │ │ │ │ ├── grey@2x.png │ │ │ │ │ ├── pink@2x.png │ │ │ │ │ ├── orange@2x.png │ │ │ │ │ ├── purple@2x.png │ │ │ │ │ ├── square@2x.png │ │ │ │ │ └── yellow@2x.png │ │ │ │ ├── minimal │ │ │ │ │ ├── aero.png │ │ │ │ │ ├── blue.png │ │ │ │ │ ├── green.png │ │ │ │ │ ├── grey.png │ │ │ │ │ ├── pink.png │ │ │ │ │ ├── red.png │ │ │ │ │ ├── aero@2x.png │ │ │ │ │ ├── blue@2x.png │ │ │ │ │ ├── grey@2x.png │ │ │ │ │ ├── minimal.png │ │ │ │ │ ├── orange.png │ │ │ │ │ ├── pink@2x.png │ │ │ │ │ ├── purple.png │ │ │ │ │ ├── red@2x.png │ │ │ │ │ ├── yellow.png │ │ │ │ │ ├── green@2x.png │ │ │ │ │ ├── minimal@2x.png │ │ │ │ │ ├── orange@2x.png │ │ │ │ │ ├── purple@2x.png │ │ │ │ │ └── yellow@2x.png │ │ │ │ ├── polaris │ │ │ │ │ ├── polaris.png │ │ │ │ │ └── polaris@2x.png │ │ │ │ └── futurico │ │ │ │ │ ├── futurico.png │ │ │ │ │ ├── futurico@2x.png │ │ │ │ │ └── futurico.css │ │ │ ├── colorpicker │ │ │ │ └── img │ │ │ │ │ ├── hue.png │ │ │ │ │ ├── alpha.png │ │ │ │ │ ├── saturation.png │ │ │ │ │ ├── hue-horizontal.png │ │ │ │ │ └── alpha-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-Italic.woff │ │ │ ├── Source-Sans-Pro-Light.ttf │ │ │ ├── Source-Sans-Pro-Light.woff │ │ │ ├── Source-Sans-Pro-Light.woff2 │ │ │ ├── Source-Sans-Pro-Italic.woff2 │ │ │ ├── Source-Sans-Pro-Semibold.ttf │ │ │ ├── Source-Sans-Pro-Semibold.woff │ │ │ ├── Source-Sans-Pro-Light-Italic.ttf │ │ │ ├── Source-Sans-Pro-Semibold.woff2 │ │ │ ├── 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 ├── .htaccess └── web.config ├── database ├── .gitignore ├── seeds │ ├── CouponCodesSeeder.php │ ├── UsersSeeder.php │ ├── UserAddressesSeeder.php │ ├── DatabaseSeeder.php │ └── ProductsSeeder.php ├── factories │ ├── ProductSkuFactory.php │ ├── OrderItemFactory.php │ ├── UserAddressFactory.php │ ├── UserFactory.php │ ├── CouponCodeFactory.php │ └── ProductFactory.php └── migrations │ ├── 2018_06_11_085012_users_add_email_verified.php │ ├── 2018_10_16_232114_products_add_long_title.php │ ├── 2018_06_12_040935_orders_add_coupon_code_id.php │ ├── 2018_10_29_100248_products_add_type.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2018_10_28_233305_create_seckill_products_table.php │ ├── 2018_10_15_194643_products_add_category_id.php │ ├── 2018_10_16_225014_create_product_properties_table.php │ ├── 2018_06_11_100849_create_cart_items_table.php │ ├── 2018_06_11_100605_create_user_favorite_products_table.php │ ├── 2018_10_15_193927_create_categories_table.php │ ├── 2018_06_11_094315_create_product_skus_table.php │ ├── 2018_06_11_094304_create_products_table.php │ ├── 2018_06_12_040849_create_coupon_codes_table.php │ ├── 2018_06_11_090519_create_user_addresses_table.php │ ├── 2018_06_11_102339_create_order_items_table.php │ └── 2018_06_11_102325_create_orders_table.php ├── routes ├── api.php ├── channels.php └── console.php ├── bootstrap ├── cache │ └── .gitignore └── helpers.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── .gitattributes ├── resources ├── views │ ├── pages │ │ ├── root.blade.php │ │ ├── error.blade.php │ │ ├── success.blade.php │ │ └── email_verify_notice.blade.php │ ├── layouts │ │ ├── _footer.blade.php │ │ ├── _category_item.blade.php │ │ └── app.blade.php │ └── products │ │ └── favorites.blade.php ├── assets │ ├── js │ │ ├── components │ │ │ ├── UserAddressesCreateAndEdit.js │ │ │ └── ExampleComponent.vue │ │ └── app.js │ └── sass │ │ └── _variables.scss └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── app ├── Http │ ├── Requests │ │ ├── Request.php │ │ ├── ApplyRefundRequest.php │ │ ├── Admin │ │ │ └── HandleRefundRequest.php │ │ ├── SendReviewRequest.php │ │ ├── UserAddressRequest.php │ │ ├── AddCartRequest.php │ │ └── OrderRequest.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── TrimStrings.php │ │ ├── VerifyCsrfToken.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── CheckIfEmailVerified.php │ │ └── TrustProxies.php │ ├── Controllers │ │ ├── PagesController.php │ │ ├── Controller.php │ │ ├── CouponCodesController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ └── ResetPasswordController.php │ │ └── CartController.php │ └── ViewComposers │ │ └── CategoryTreeComposer.php ├── Policies │ ├── OrderPolicy.php │ └── UserAddressPolicy.php ├── Models │ ├── ProductProperty.php │ ├── CartItem.php │ ├── OrderItem.php │ ├── UserAddress.php │ ├── SeckillProduct.php │ ├── ProductSku.php │ └── User.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ └── EventServiceProvider.php ├── Listeners │ ├── SendOrderPaidMail.php │ ├── RegisteredListener.php │ ├── UpdateProductSoldCount.php │ └── UpdateProductRating.php ├── Admin │ ├── bootstrap.php │ └── Controllers │ │ ├── SeckillProductsController.php │ │ └── HomeController.php ├── Exceptions │ ├── InvalidRequestException.php │ ├── InternalException.php │ ├── CouponCodeUnavailableException.php │ └── Handler.php ├── Events │ ├── OrderPaid.php │ └── OrderReviewd.php ├── Jobs │ ├── SyncOneProductToES.php │ └── CloseOrder.php ├── Services │ ├── ProductService.php │ ├── CartService.php │ └── CategoryService.php ├── Console │ └── Kernel.php └── Notifications │ ├── OrderPaidNotification.php │ └── EmailVerificationNotification.php ├── .gitignore ├── back_admin_db.sh ├── webpack.mix.js ├── server.php ├── .env.example ├── LICENSE ├── config ├── view.php └── services.php ├── phpunit.xml └── package.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /routes/api.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 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/icons.png -------------------------------------------------------------------------------- /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/boxed-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal2.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/dist/img/default-50x50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/dist/img/user2-160x160.jpg -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap-fileinput/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/bootstrap-fileinput/img/loading.gif -------------------------------------------------------------------------------- /public/vendor/laravel-admin/bootstrap3-editable/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/bootstrap3-editable/img/loading.gif -------------------------------------------------------------------------------- /public/vendor/laravel-admin/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.ttf -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/saturation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico@2x.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/hue-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/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-Semibold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha-horizontal.png -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff2 -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/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/shisiying/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/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shisiying/shop/HEAD/public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | create(); 10 | } 11 | } -------------------------------------------------------------------------------- /app/Http/Requests/Request.php: -------------------------------------------------------------------------------- 1 | create(); 11 | } 12 | } -------------------------------------------------------------------------------- /public/vendor/horizon/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js?id=abd95663ce821390d4fa", 3 | "/css/app.css": "/css/app.css?id=5ce9973b1bc9f6a46cb2", 4 | "/js/app.js.map": "/js/app.js.map?id=125981781d35176ff5f1", 5 | "/css/app.css.map": "/css/app.css.map?id=5d0439ebaab1434c7ea0" 6 | } -------------------------------------------------------------------------------- /app/Policies/OrderPolicy.php: -------------------------------------------------------------------------------- 1 | user_id == $user->id; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /resources/views/layouts/_footer.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/pages/error.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title', '错误') 3 | 4 | @section('content') 5 |
6 |
错误
7 |
8 |

{{ $msg }}

9 | 返回首页 10 |
11 |
12 | @endsection 13 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.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 | -------------------------------------------------------------------------------- /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 13 | -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Models/ProductProperty.php: -------------------------------------------------------------------------------- 1 | belongsTo(Product::class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Requests/ApplyRefundRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 11 | ]; 12 | } 13 | 14 | public function attributes() 15 | { 16 | return [ 17 | 'reason' => '原因', 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Requests/Admin/HandleRefundRequest.php: -------------------------------------------------------------------------------- 1 | ['required', 'boolean'], 13 | 'reason' => ['required_if:agree,false'], // 拒绝退款时需要输入拒绝理由 14 | ]; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /database/seeds/UserAddressesSeeder.php: -------------------------------------------------------------------------------- 1 | each(function (User $user) { 12 | factory(UserAddress::class, random_int(1, 3))->create(['user_id' => $user->id]); 13 | }); 14 | } 15 | } -------------------------------------------------------------------------------- /resources/views/pages/email_verify_notice.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title', '提示') 3 | 4 | @section('content') 5 |
6 |
提示
7 |
8 |

请先验证邮箱

9 | 重新发送验证邮件 10 |
11 |
12 | @endsection -------------------------------------------------------------------------------- /app/Http/Controllers/PagesController.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Models/CartItem.php: -------------------------------------------------------------------------------- 1 | belongsTo(User::class); 15 | } 16 | 17 | public function productSku() 18 | { 19 | return $this->belongsTo(ProductSku::class); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersSeeder::class); 10 | $this->call(UserAddressesSeeder::class); 11 | $this->call(CategoriesSeeder::class); 12 | $this->call(ProductsSeeder::class); 13 | $this->call(CouponCodesSeeder::class); 14 | $this->call(OrdersSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 20 | 21 | Hash::setRounds(4); 22 | 23 | return $app; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /back_admin_db.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 导入 .env 环境变量 4 | source .env 5 | 6 | # 要备份的表 7 | 8 | tables="admin_menu admin_permissions admin_role_menu admin_role_permissions admin_role_users admin_roles admin_user_permissions admin_users" 9 | 10 | # 执行备份 11 | 12 | mysqldump --host="${DB_HOST}" --port=${DB_PORT} --user="${DB_USERNAME}" --password="${DB_PASSWORD}" -t ${DB_DATABASE} ${tables} > database/admin.sql 13 | 14 | # mysqldump -t laravel-shop admin_menu admin_permissions admin_role_menu admin_role_permissions admin_role_users admin_roles admin_user_permissions admin_users > database/admin.sql -------------------------------------------------------------------------------- /app/Policies/UserAddressPolicy.php: -------------------------------------------------------------------------------- 1 | user_id == $user->id; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/Controllers/CouponCodesController.php: -------------------------------------------------------------------------------- 1 | first()) { 14 | throw new CouponCodeUnavailableException('优惠券不存在'); 15 | } 16 | 17 | $record->checkAvailable($request->user()); 18 | 19 | return $record; 20 | } 21 | } -------------------------------------------------------------------------------- /app/Listeners/SendOrderPaidMail.php: -------------------------------------------------------------------------------- 1 | getOrder(); 17 | // 调用 notify 方法来发送通知 18 | $order->user->notify(new OrderPaidNotification($order)); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /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 | Encore\Admin\Form::forget(['map']); 22 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | let 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/assets/js/app.js', 'public/js') 15 | .sass('resources/assets/sass/app.scss', 'public/css') 16 | .version(); 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Listeners/RegisteredListener.php: -------------------------------------------------------------------------------- 1 | user; 18 | // 调用 notify 发送通知 19 | $user->notify(new EmailVerificationNotification()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /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/Models/OrderItem.php: -------------------------------------------------------------------------------- 1 | belongsTo(Product::class); 16 | } 17 | 18 | public function productSku() 19 | { 20 | return $this->belongsTo(ProductSku::class); 21 | } 22 | 23 | public function order() 24 | { 25 | return $this->belongsTo(Order::class); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/ViewComposers/CategoryTreeComposer.php: -------------------------------------------------------------------------------- 1 | categoryService = $categoryService; 15 | } 16 | 17 | // 当渲染指定的模板时,Laravel 会调用 compose 方法 18 | public function compose(View $view) 19 | { 20 | // 使用 with 方法注入变量 21 | $view->with('categoryTree', $this->categoryService->getCategoryTree()); 22 | } 23 | } -------------------------------------------------------------------------------- /public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/zh-TW.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-TW",[],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()) { 18 | // json() 方法第二个参数就是 Http 返回码 19 | return response()->json(['msg' => $this->message], $this->code); 20 | } 21 | 22 | return view('pages.error', ['msg' => $this->message]); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/migrations/2018_06_11_085012_users_add_email_verified.php: -------------------------------------------------------------------------------- 1 | boolean('email_verified')->default(false)->after('remember_token'); 13 | }); 14 | } 15 | 16 | public function down() 17 | { 18 | Schema::table('users', function (Blueprint $table) { 19 | $table->dropColumn('email_verified'); 20 | }); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /resources/views/layouts/_category_item.blade.php: -------------------------------------------------------------------------------- 1 | 2 | @if(isset($category['children']) && count($category['children']) > 0) 3 | 10 | @else 11 |
  • {{ $category['name'] }}
  • 12 | @endif -------------------------------------------------------------------------------- /resources/assets/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 | -------------------------------------------------------------------------------- /app/Models/UserAddress.php: -------------------------------------------------------------------------------- 1 | belongsTo(User::class); 24 | } 25 | 26 | public function getFullAddressAttribute() 27 | { 28 | return "{$this->province}{$this->city}{$this->district}{$this->address}"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /app/Http/Middleware/CheckIfEmailVerified.php: -------------------------------------------------------------------------------- 1 | user()->email_verified) { 19 | if ($request->expectsJson()) { 20 | return response()->json(['msg' => '请先验证邮箱'], 400); 21 | } 22 | return redirect(route('email_verify_notice')); 23 | } 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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 | // 找出价格最低的 SKU 价格,把商品价格设置为该价格 20 | $product->update(['price' => $skus->min('price')]); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_LOG_LEVEL=debug 6 | APP_URL=http://localhost 7 | 8 | DB_CONNECTION=mysql 9 | DB_HOST=127.0.0.1 10 | DB_PORT=3306 11 | DB_DATABASE=homestead 12 | DB_USERNAME=homestead 13 | DB_PASSWORD=secret 14 | 15 | BROADCAST_DRIVER=log 16 | CACHE_DRIVER=file 17 | SESSION_DRIVER=file 18 | SESSION_LIFETIME=120 19 | QUEUE_DRIVER=sync 20 | 21 | REDIS_HOST=127.0.0.1 22 | REDIS_PASSWORD=null 23 | REDIS_PORT=6379 24 | 25 | MAIL_DRIVER=smtp 26 | MAIL_HOST=smtp.mailtrap.io 27 | MAIL_PORT=2525 28 | MAIL_USERNAME=null 29 | MAIL_PASSWORD=null 30 | MAIL_ENCRYPTION=null 31 | 32 | PUSHER_APP_ID= 33 | PUSHER_APP_KEY= 34 | PUSHER_APP_SECRET= 35 | PUSHER_APP_CLUSTER=mt1 36 | 37 | ES_HOSTS= -------------------------------------------------------------------------------- /app/Exceptions/InternalException.php: -------------------------------------------------------------------------------- 1 | msgForUser = $msgForUser; 16 | } 17 | 18 | public function render(Request $request) 19 | { 20 | if ($request->expectsJson()) { 21 | return response()->json(['msg' => $this->msgForUser], $this->code); 22 | } 23 | 24 | return view('pages.error', ['msg' => $this->msgForUser]); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /database/factories/OrderItemFactory.php: -------------------------------------------------------------------------------- 1 | define(OrderItem::class, function (Faker $faker) { 8 | // 从数据库随机取一条商品 9 | $product = Product::query()->where('on_sale', true)->inRandomOrder()->first(); 10 | // 从该商品的 SKU 中随机取一条 11 | $sku = $product->skus()->inRandomOrder()->first(); 12 | 13 | return [ 14 | 'amount' => random_int(1, 5), // 购买数量随机 1 - 5 份 15 | 'price' => $sku->price, 16 | 'rating' => null, 17 | 'review' => null, 18 | 'reviewed_at' => null, 19 | 'product_id' => $product->id, 20 | 'product_sku_id' => $sku->id, 21 | ]; 22 | }); 23 | -------------------------------------------------------------------------------- /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/Exceptions/CouponCodeUnavailableException.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 20 | return response()->json(['msg' => $this->message], $this->code); 21 | } 22 | // 否则返回上一页并带上错误信息 23 | return redirect()->back()->withErrors(['coupon_code' => $this->message]); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Events/OrderPaid.php: -------------------------------------------------------------------------------- 1 | order = $order; 23 | } 24 | 25 | public function getOrder() 26 | { 27 | return $this->order; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/Events/OrderReviewd.php: -------------------------------------------------------------------------------- 1 | order = $order; 23 | } 24 | 25 | public function getOrder() 26 | { 27 | return $this->order; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /app/Models/SeckillProduct.php: -------------------------------------------------------------------------------- 1 | belongsTo(Product::class); 19 | } 20 | 21 | //当前时间早于秒杀时间返回true 22 | public function getIsBeforeStartAttribute() 23 | { 24 | return Carbon::now()->lt($this->start_at); 25 | } 26 | 27 | //当前时间晚于秒杀结束时返回true 28 | public function getIsAfterEndAttribute() 29 | { 30 | return Carbon::now()->gt($this->end_at); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /resources/assets/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 | * Next, we will create a fresh Vue application instance and attach it to 14 | * the page. Then, you may begin adding components to this application 15 | * or customize the JavaScript scaffolding to fit your unique needs. 16 | */ 17 | 18 | Vue.component('example-component', require('./components/ExampleComponent.vue')); 19 | 20 | require('./components/SelectDistrict'); 21 | require('./components/UserAddressesCreateAndEdit'); 22 | 23 | const app = new Vue({ 24 | el: '#app' 25 | }); 26 | -------------------------------------------------------------------------------- /app/Http/Requests/SendReviewRequest.php: -------------------------------------------------------------------------------- 1 | ['required', 'array'], 13 | 'reviews.*.id' => [ 14 | 'required', 15 | Rule::exists('order_items', 'id')->where('order_id', $this->route('order')->id) 16 | ], 17 | 'reviews.*.rating' => ['required', 'integer', 'between:1,5'], 18 | 'reviews.*.review' => ['required'], 19 | ]; 20 | } 21 | 22 | public function attributes() 23 | { 24 | return [ 25 | 'reviews.*.rating' => '评分', 26 | 'reviews.*.review' => '评价', 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | 'FORWARDED', 24 | Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR', 25 | Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST', 26 | Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT', 27 | Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO', 28 | ]; 29 | } 30 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/migrations/2018_10_16_232114_products_add_long_title.php: -------------------------------------------------------------------------------- 1 | string('long_title')->after('title'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('products', function (Blueprint $table) { 29 | $table->dropColumn('long_title'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2018_06_12_040935_orders_add_coupon_code_id.php: -------------------------------------------------------------------------------- 1 | unsignedInteger('coupon_code_id')->nullable()->after('paid_at'); 13 | $table->foreign('coupon_code_id')->references('id')->on('coupon_codes')->onDelete('set null'); 14 | }); 15 | } 16 | 17 | public function down() 18 | { 19 | Schema::table('orders', function (Blueprint $table) { 20 | $table->dropForeign(['coupon_code_id']); 21 | $table->dropColumn('coupon_code_id'); 22 | }); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | @yield('title', 'Laravel Shop') - Shop 10 | 11 | 12 | 13 | 14 |
    15 | @include('layouts._header') 16 |
    17 | @yield('content') 18 |
    19 | @include('layouts._footer') 20 |
    21 | 22 | 23 | @yield('scriptsAfterJs') 24 | 25 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /database/migrations/2018_10_29_100248_products_add_type.php: -------------------------------------------------------------------------------- 1 | string('type')->after('id')->default(\App\Models\Product::TYPE_NORMAL)->index(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('products', function (Blueprint $table) { 29 | $table->dropColumn('type'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret 21 | 'remember_token' => str_random(10), 22 | 'email_verified' => true, 23 | ]; 24 | }); 25 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /app/Models/ProductSku.php: -------------------------------------------------------------------------------- 1 | belongsTo(Product::class); 15 | } 16 | 17 | public function decreaseStock($amount) 18 | { 19 | if ($amount < 0) { 20 | throw new InternalException('减库存不可小于0'); 21 | } 22 | 23 | return $this->newQuery()->where('id', $this->id)->where('stock', '>=', $amount)->decrement('stock', $amount); 24 | } 25 | 26 | public function addStock($amount) 27 | { 28 | if ($amount < 0) { 29 | throw new InternalException('加库存不可小于0'); 30 | } 31 | $this->increment('stock', $amount); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Jobs/SyncOneProductToES.php: -------------------------------------------------------------------------------- 1 | product = $product; 21 | } 22 | 23 | public function handle() 24 | { 25 | $data = $this->product->toESArray(); 26 | app('es')->index([ 27 | 'index' => 'products', 28 | 'type' => '_doc', 29 | 'id' => $data['id'], 30 | 'body' => $data, 31 | ]); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | UserAddressPolicy::class, 21 | Order::class => OrderPolicy::class, 22 | ]; 23 | 24 | /** 25 | * Register any authentication / authorization services. 26 | * 27 | * @return void 28 | */ 29 | public function boot() 30 | { 31 | $this->registerPolicies(); 32 | 33 | // 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->string('password'); 21 | $table->rememberToken(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('users'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /app/Http/Requests/UserAddressRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 11 | 'city' => 'required', 12 | 'district' => 'required', 13 | 'address' => 'required', 14 | 'zip' => 'required', 15 | 'contact_name' => 'required', 16 | 'contact_phone' => 'required', 17 | ]; 18 | } 19 | 20 | public function attributes() 21 | { 22 | return [ 23 | 'province' => '省', 24 | 'city' => '城市', 25 | 'district' => '地区', 26 | 'address' => '详细地址', 27 | 'zip' => '邮编', 28 | 'contact_name' => '姓名', 29 | 'contact_phone' => '电话', 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /app/Services/ProductService.php: -------------------------------------------------------------------------------- 1 | properties) === 0) { 13 | return []; 14 | } 15 | $builder = (new ProductSearchBuilder())->onSale()->paginate($amount, 1); 16 | foreach ($product->properties as $property) { 17 | $builder->propertyFilter($property->name, $property->value, 'should'); 18 | } 19 | $builder->minShouldMatch(ceil(count($product->properties) / 2)); 20 | $params = $builder->getParams(); 21 | $params['body']['query']['bool']['must_not'] = [['term' => ['_id' => $product->id]]]; 22 | $result = app('es')->search($params); 23 | 24 | return collect($result['hits']['hits'])->pluck('_id')->all(); 25 | } 26 | } -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /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/2018_10_28_233305_create_seckill_products_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->unsignedInteger('product_id'); 19 | $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); 20 | $table->dateTime('start_at'); 21 | $table->dateTime('end_at'); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('seckill_products'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2018_10_15_194643_products_add_category_id.php: -------------------------------------------------------------------------------- 1 | unsignedInteger('category_id')->nullable()->after('id'); 18 | $table->foreign('category_id')->references('id')->on('categories')->onDelete('set null'); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::table('products', function (Blueprint $table) { 30 | $table->dropForeign(['category_id']); 31 | $table->dropColumn('category_id'); 32 | }); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/migrations/2018_10_16_225014_create_product_properties_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->unsignedInteger('product_id'); 19 | $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); 20 | $table->string('name'); 21 | $table->string('value'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('product_properties'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/assets/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f5f8fa; 4 | 5 | // Borders 6 | $laravel-border-color: darken($body-bg, 10%); 7 | $list-group-border: $laravel-border-color; 8 | $navbar-default-border: $laravel-border-color; 9 | $panel-default-border: $laravel-border-color; 10 | $panel-inner-border: $laravel-border-color; 11 | 12 | // Brands 13 | $brand-primary: #3097D1; 14 | $brand-info: #8eb4cb; 15 | $brand-success: #2ab27b; 16 | $brand-warning: #cbb956; 17 | $brand-danger: #bf5329; 18 | 19 | // Typography 20 | $icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/"; 21 | $font-family-sans-serif: "Raleway", sans-serif; 22 | $font-size-base: 14px; 23 | $line-height-base: 1.6; 24 | $text-color: #636b6f; 25 | 26 | // Navbar 27 | $navbar-default-bg: #fff; 28 | 29 | // Buttons 30 | $btn-default-color: $text-color; 31 | 32 | // Inputs 33 | $input-border: lighten($text-color, 40%); 34 | $input-border-focus: lighten($brand-primary, 25%); 35 | $input-color-placeholder: lighten($text-color, 30%); 36 | 37 | // Panels 38 | $panel-default-heading-bg: #fff; 39 | -------------------------------------------------------------------------------- /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;hid('ID')->sortable(); 21 | $grid->title('商品名称'); 22 | $grid->on_sale('已上架')->display(function ($value) { 23 | return $value ? '是' : '否'; 24 | }); 25 | $grid->price('价格'); 26 | $grid->column('seckill.start_at', '开始时间'); 27 | $grid->column('seckill.end_at', '结束时间'); 28 | $grid->sold_count('销量'); 29 | } 30 | 31 | protected function customForm(Form $form) 32 | { 33 | // 秒杀相关字段 34 | $form->datetime('seckill.start_at', '秒杀开始时间')->rules('required|date'); 35 | $form->datetime('seckill.end_at', '秒杀结束时间')->rules('required|date'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Listeners/UpdateProductSoldCount.php: -------------------------------------------------------------------------------- 1 | getOrder(); 17 | // 循环遍历订单的商品 18 | foreach ($order->items as $item) { 19 | $product = $item->product; 20 | // 计算对应商品的销量 21 | $soldCount = OrderItem::query() 22 | ->where('product_id', $product->id) 23 | ->whereHas('order', function ($query) { 24 | $query->whereNotNull('paid_at'); // 关联的订单状态是已支付 25 | })->sum('amount'); 26 | // 更新商品销量 27 | $product->update([ 28 | 'sold_count' => $soldCount, 29 | ]); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2018_06_11_100849_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/2018_06_11_100605_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 | -------------------------------------------------------------------------------- /database/migrations/2018_10_15_193927_create_categories_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->unsignedInteger('parent_id')->nullable(); 20 | $table->foreign('parent_id')->references('id')->on('categories')->onDelete('cascade'); 21 | $table->boolean('is_directory'); 22 | $table->unsignedInteger('level'); 23 | $table->string('path'); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('categories'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /database/migrations/2018_06_11_094315_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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2018 Leo & Summer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /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' => realpath(storage_path('framework/views')), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Notifications/OrderPaidNotification.php: -------------------------------------------------------------------------------- 1 | order = $order; 20 | } 21 | 22 | // 我们只需要通过邮件通知,因此这里只需要一个 mail 即可 23 | public function via($notifiable) 24 | { 25 | return ['mail']; 26 | } 27 | 28 | public function toMail($notifiable) 29 | { 30 | return (new MailMessage) 31 | ->subject('订单支付成功') // 邮件标题 32 | ->greeting($this->order->user->name.'您好:') // 欢迎词 33 | ->line('您于 '.$this->order->created_at->format('m-d H:i').' 创建的订单已经支付成功。') // 邮件内容 34 | ->action('查看订单', route('orders.show', [$this->order->id])) // 邮件中的按钮及对应链接 35 | ->success(); // 按钮的色调 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | ], 21 | 22 | 'ses' => [ 23 | 'key' => env('SES_KEY'), 24 | 'secret' => env('SES_SECRET'), 25 | 'region' => 'us-east-1', 26 | ], 27 | 28 | 'sparkpost' => [ 29 | 'secret' => env('SPARKPOST_SECRET'), 30 | ], 31 | 32 | 'stripe' => [ 33 | 'model' => App\Models\User::class, 34 | 'key' => env('STRIPE_KEY'), 35 | 'secret' => env('STRIPE_SECRET'), 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Feature 14 | 15 | 16 | 17 | ./tests/Unit 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /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}})(); -------------------------------------------------------------------------------- /app/Http/Controllers/CartController.php: -------------------------------------------------------------------------------- 1 | cartService = $cartService; 18 | } 19 | 20 | public function index(Request $request) 21 | { 22 | $cartItems = $this->cartService->get(); 23 | $addresses = $request->user()->addresses()->orderBy('last_used_at', 'desc')->get(); 24 | 25 | return view('cart.index', ['cartItems' => $cartItems, 'addresses' => $addresses]); 26 | } 27 | 28 | public function add(AddCartRequest $request) 29 | { 30 | $this->cartService->add($request->input('sku_id'), $request->input('amount')); 31 | 32 | return []; 33 | } 34 | 35 | public function remove(ProductSku $sku, Request $request) 36 | { 37 | $this->cartService->remove($sku->id); 38 | 39 | return []; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /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 | if (!is_array($skuIds)) { 38 | $skuIds = [$skuIds]; 39 | } 40 | Auth::user()->cartItems()->whereIn('product_sku_id', $skuIds)->delete(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Services/CategoryService.php: -------------------------------------------------------------------------------- 1 | where('parent_id', $parentId) 21 | // 遍历这些类目,并用返回值构建一个新的集合 22 | ->map(function (Category $category) use ($allCategories) { 23 | $data = ['id' => $category->id, 'name' => $category->name]; 24 | // 如果当前类目不是父类目,则直接返回 25 | if (!$category->is_directory) { 26 | return $data; 27 | } 28 | // 否则递归调用本方法,将返回值放入 children 字段中 29 | $data['children'] = $this->getCategoryTree($category->id, $allCategories); 30 | 31 | return $data; 32 | }); 33 | } 34 | } -------------------------------------------------------------------------------- /database/migrations/2018_06_11_094304_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}})(); -------------------------------------------------------------------------------- /app/Listeners/UpdateProductRating.php: -------------------------------------------------------------------------------- 1 | getOrder()->items()->with(['product'])->get(); 18 | foreach ($items as $item) { 19 | $result = OrderItem::query() 20 | ->where('product_id', $item->product_id) 21 | ->whereHas('order', function ($query) { 22 | $query->whereNotNull('paid_at'); 23 | }) 24 | ->first([ 25 | DB::raw('count(*) as review_count'), 26 | DB::raw('avg(rating) as rating') 27 | ]); 28 | // 更新商品的评分和评价数 29 | $item->product->update([ 30 | 'rating' => $result->rating, 31 | 'review_count' => $result->review_count, 32 | ]); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Admin/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | header('Dashboard'); 19 | $content->description('Description...'); 20 | 21 | $content->row(Dashboard::title()); 22 | 23 | $content->row(function (Row $row) { 24 | 25 | $row->column(4, function (Column $column) { 26 | $column->append(Dashboard::environment()); 27 | }); 28 | 29 | $row->column(4, function (Column $column) { 30 | $column->append(Dashboard::extensions()); 31 | }); 32 | 33 | $row->column(4, function (Column $column) { 34 | $column->append(Dashboard::dependencies()); 35 | }); 36 | }); 37 | }); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": " NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": " NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": " 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": " 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.17", 14 | "bootstrap-sass": "^3.3.7", 15 | "jquery": "^3.2", 16 | "laravel-mix": "^1.0", 17 | "lodash": "^4.17.4", 18 | "vue": "^2.5.7" 19 | }, 20 | "dependencies": { 21 | "china-area-data": "^4.0.0", 22 | "sweetalert": "^2.1.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 'boolean', 32 | ]; 33 | 34 | public function addresses() 35 | { 36 | return $this->hasMany(UserAddress::class); 37 | } 38 | 39 | public function cartItems() 40 | { 41 | return $this->hasMany(CartItem::class); 42 | } 43 | 44 | public function favoriteProducts() 45 | { 46 | return $this->belongsToMany(Product::class, 'user_favorite_products') 47 | ->withTimestamps() 48 | ->orderBy('user_favorite_products.created_at', 'desc'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 24 | RegisteredListener::class, 25 | ], 26 | OrderPaid::class => [ 27 | UpdateProductSoldCount::class, 28 | SendOrderPaidMail::class, 29 | ], 30 | OrderReviewd::class => [ 31 | UpdateProductRating::class, 32 | ], 33 | ]; 34 | 35 | /** 36 | * Register any events for your application. 37 | * 38 | * @return void 39 | */ 40 | public function boot() 41 | { 42 | parent::boot(); 43 | 44 | // 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /database/migrations/2018_06_12_040849_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 | -------------------------------------------------------------------------------- /database/migrations/2018_06_11_090519_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 | -------------------------------------------------------------------------------- /app/Notifications/EmailVerificationNotification.php: -------------------------------------------------------------------------------- 1 | email, $token, 30); 29 | $url = route('email_verification.verify', ['email' => $notifiable->email, 'token' => $token]); 30 | return (new MailMessage) 31 | ->greeting($notifiable->name.'您好:') 32 | ->subject('注册成功,请验证您的邮箱') 33 | ->line('请点击下方链接验证您的邮箱') 34 | ->action('验证', $url); 35 | } 36 | 37 | public function toArray($notifiable) 38 | { 39 | return []; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /resources/views/products/favorites.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title', '我的收藏') 3 | 4 | @section('content') 5 |
    6 |
    7 |
    8 |
    我的收藏
    9 |
    10 |
    11 | @foreach($products as $product) 12 |
    13 |
    14 |
    15 |
    16 | 17 | 18 | 19 |
    20 |
    {{ $product->price }}
    21 | {{ $product->title }} 22 |
    23 |
    24 |
    销量 {{ $product->sold_count }}笔
    25 |
    评价 {{ $product->review_count }}
    26 |
    27 |
    28 |
    29 | @endforeach 30 |
    31 |
    {{ $products->render() }}
    32 |
    33 |
    34 |
    35 |
    36 | @endsection -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | [ 13 | 'required', 14 | function ($attribute, $value, $fail) { 15 | if (!$sku = ProductSku::find($value)) { 16 | $fail('该商品不存在'); 17 | return; 18 | } 19 | if (!$sku->product->on_sale) { 20 | $fail('该商品未上架'); 21 | return; 22 | } 23 | if ($sku->stock === 0) { 24 | $fail('该商品已售完'); 25 | return; 26 | } 27 | if ($this->input('amount') > 0 && $sku->stock < $this->input('amount')) { 28 | $fail('该商品库存不足'); 29 | return; 30 | } 31 | }, 32 | ], 33 | 'amount' => ['required', 'integer', 'min:1'], 34 | ]; 35 | } 36 | 37 | public function attributes() 38 | { 39 | return [ 40 | 'amount' => '商品数量' 41 | ]; 42 | } 43 | 44 | public function messages() 45 | { 46 | return [ 47 | 'sku_id.required' => '请选择商品' 48 | ]; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /app/Jobs/CloseOrder.php: -------------------------------------------------------------------------------- 1 | order = $order; 22 | // 设置延迟的时间,delay() 方法的参数代表多少秒之后执行 23 | $this->delay($delay); 24 | } 25 | 26 | // 定义这个任务类具体的执行逻辑 27 | // 当队列处理器从队列中取出任务时,会调用 handle() 方法 28 | public function handle() 29 | { 30 | // 判断对应的订单是否已经被支付 31 | // 如果已经支付则不需要关闭订单,直接退出 32 | if ($this->order->paid_at) { 33 | return; 34 | } 35 | // 通过事务执行 sql 36 | \DB::transaction(function() { 37 | // 将订单的 closed 字段标记为 true,即关闭订单 38 | $this->order->update(['closed' => true]); 39 | // 循环遍历订单中的商品 SKU,将订单中的数量加回到 SKU 的库存中去 40 | foreach ($this->order->items as $item) { 41 | $item->productSku->addStock($item->amount); 42 | } 43 | if ($this->order->couponCode) { 44 | $this->order->couponCode->changeUsed(false); 45 | } 46 | }); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /database/migrations/2018_06_11_102339_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 | -------------------------------------------------------------------------------- /database/factories/ProductFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Models\Product::class, function (Faker $faker) { 6 | $image = $faker->randomElement([ 7 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/7kG1HekGK6.jpg", 8 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/1B3n0ATKrn.jpg", 9 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/r3BNRe4zXG.jpg", 10 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/C0bVuKB2nt.jpg", 11 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/82Wf2sg8gM.jpg", 12 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/nIvBAQO5Pj.jpg", 13 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/XrtIwzrxj7.jpg", 14 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/uYEHCJ1oRp.jpg", 15 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/2JMRaFwRpo.jpg", 16 | "https://lccdn.phphub.org/uploads/images/201806/01/5320/pa7DrV43Mw.jpg", 17 | ]); 18 | $category = \App\Models\Category::query()->where('is_directory', false)->inRandomOrder()->first(); 19 | 20 | return [ 21 | 'title' => $faker->word, 22 | 'long_title' => $faker->sentence, 23 | 'description' => $faker->sentence, 24 | 'image' => $image, 25 | 'on_sale' => true, 26 | 'rating' => $faker->numberBetween(0, 5), 27 | 'sold_count' => 0, 28 | 'review_count' => 0, 29 | 'price' => 0, 30 | 'category_id' => $category ? $category->id : null, 31 | 32 | ]; 33 | }); 34 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /database/migrations/2018_06_11_102325_create_orders_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('no')->unique(); 19 | $table->unsignedInteger('user_id'); 20 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 21 | $table->text('address'); 22 | $table->decimal('total_amount'); 23 | $table->text('remark')->nullable(); 24 | $table->dateTime('paid_at')->nullable(); 25 | $table->string('payment_method')->nullable(); 26 | $table->string('payment_no')->nullable(); 27 | $table->string('refund_status')->default(\App\Models\Order::REFUND_STATUS_PENDING); 28 | $table->string('refund_no')->nullable(); 29 | $table->boolean('closed')->default(false); 30 | $table->boolean('reviewed')->default(false); 31 | $table->string('ship_status')->default(\App\Models\Order::SHIP_STATUS_PENDING); 32 | $table->text('ship_data')->nullable(); 33 | $table->text('extra')->nullable(); 34 | $table->timestamps(); 35 | }); 36 | } 37 | 38 | /** 39 | * Reverse the migrations. 40 | * 41 | * @return void 42 | */ 43 | public function down() 44 | { 45 | Schema::dropIfExists('orders'); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /app/Http/Requests/OrderRequest.php: -------------------------------------------------------------------------------- 1 | ['required', Rule::exists('user_addresses', 'id')->where('user_id', $this->user()->id)], 16 | 'items' => ['required', 'array'], 17 | 'items.*.sku_id' => [ // 检查 items 数组下每一个子数组的 sku_id 参数 18 | 'required', 19 | function ($attribute, $value, $fail) { 20 | if (!$sku = ProductSku::find($value)) { 21 | $fail('该商品不存在'); 22 | return; 23 | } 24 | if (!$sku->product->on_sale) { 25 | $fail('该商品未上架'); 26 | return; 27 | } 28 | if ($sku->stock === 0) { 29 | $fail('该商品已售完'); 30 | return; 31 | } 32 | // 获取当前索引 33 | preg_match('/items\.(\d+)\.sku_id/', $attribute, $m); 34 | $index = $m[1]; 35 | // 根据索引找到用户所提交的购买数量 36 | $amount = $this->input('items')[$index]['amount']; 37 | if ($amount > 0 && $amount > $sku->stock) { 38 | $fail('该商品库存不足'); 39 | return; 40 | } 41 | }, 42 | ], 43 | 'items.*.amount' => ['required', 'integer', 'min:1'], 44 | ]; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------