{"id":12186,"date":"2020-06-11T00:00:00","date_gmt":"2020-06-10T16:00:00","guid":{"rendered":"https:\/\/fgchen.com\/wpedu2\/2020\/06\/11\/%e3%80%90%e7%ad%86%e8%a8%98-laravel%e3%80%91laravel-e-commerce-application-development-27-lessons\/"},"modified":"2026-03-30T14:40:31","modified_gmt":"2026-03-30T06:40:31","slug":"%e3%80%90%e7%ad%86%e8%a8%98-laravel%e3%80%91laravel-e-commerce-application-development-27-lessons","status":"publish","type":"post","link":"https:\/\/fgchen.com\/wpedu\/2020\/06\/%e3%80%90%e7%ad%86%e8%a8%98-laravel%e3%80%91laravel-e-commerce-application-development-27-lessons\/","title":{"rendered":"Laravel E-Commerce Application Development( 27 Lessons )"},"content":{"rendered":"<h3 class=\"rcc-post-list-title\">\u4f86\u6e90\uff1a<a href=\"https:\/\/www.larashout.com\/order-management\" target=\"_blank\" rel=\"noopener noreferrer\">Laravel E-Commerce Application Development( 27 Lessons )<\/a><\/h3>\n\n\u9019\u500b\u6559\u5b78\u662f\u4e00\u500b\u5b8c\u6574\u5efa\u7acb\u4e00\u500bEC\u7db2\u7ad9\u6559\u5b78\uff0c\u4f7f\u7528Laravel 5.8 \u8207 Vue (\u524d\u7aef)\uff0c\u5171\u670927\u500b\u6559\u5b78\uff0c\u6839\u64da\u88cf\u9762\u7684\u6559\u5b78\u53ef\u80fd\u4f5c\u8005\u6c92\u6709\u4ea4\u5f85\u5b8c\u6574\u6216\u5efa\u7f6e\u904e\u7a0b\u6709\u758f\u6f0f\uff0c\u4f7f\u5f97\u7121\u6cd5\u5efa\u7acb\u7684\u61c9\u7528\u7a0b\u5f0f\u7121\u6cd5\u6b63\u5e38\u904b\u4f5c\uff0c\u6b64\u6642\u53ef\u4ee5\u4f7f\u7528\u4f5c\u8005\u63d0\u4f9b\u7684\u6e90\u78bc\u5148\u5efa\u7acb\u4e00\u500b\u53c3\u8003\u7bc4\u4f8b\uff0c\u518d\u95b1\u8b80\u4f5c\u8005\u7684\u6559\u5b78\u3002\n\u9019\u500b\u96fb\u5b50\u5546\u52d9\u8981\u5927\u81f4\u6eff\u8db3\u4ee5\u4e0b\u7684\u9700\u6c42\uff1a\n\n<ul>\n    <li>A catalog page where all products will be displayed to buyers. \u8cb7\u5bb6\u89c0\u770b\u7684\u7522\u54c1\u76ee\u9304\u9801<\/li>\n    <li>A product details page where buyers can find more information about the product. \u7522\u54c1\u7d30\u7bc0\u9801\u9762\uff0c\u8cb7\u5bb6\u53ef\u4ee5\u900f\u904e\u9019\u500b\u9801\u9762\u767c\u73fe\u5546\u54c1\u66f4\u591a\u7684\u8cc7\u8a0a\u3002<\/li>\n    <li>A checkout system, where buyers can enter the shipping address and pay. \u7d50\u5e33\u7cfb\u7d71\uff0c\u8cb7\u5bb6\u53ef\u4ee5\u8f38\u5165\u9001\u8ca8\u5730\u5740\u4e26\u4e14\u9032\u884c\u4ed8\u6b3e\u3002<\/li>\n    <li>Login and registration pages so buyers can register or login to their account. \u4f9b\u8cb7\u5bb6\u767b\u5165\u8207\u8a3b\u518a\u7684\u9801\u9762\u3002<\/li>\n    <li>Account dashboard for customers where they can see recent orders placed, or can change their account details. \u5e33\u865f\u8cc7\u8a0a\u8207\u7ba1\u7406\u9801\u9762\uff0c\u8cb7\u5bb6\u53ef\u4ee5\u7528\u4f86\u6aa2\u8996\u8a02\u55ae\uff0c\u6216\u8005\u4fee\u6539\u5e33\u865f\u8cc7\u6599\u3002<\/li>\n    <li>An admin area where shop owner can log in and manage followings: \u5f8c\u53f0\u7ba1\u7406\u4ecb\u9762\uff0c\u4f9b\u5546\u54c1\u7ba1\u7406\u8005\u767b\u5165\u4e26\u4e14\u7ba1\u7406\u4e0b\u5217\u4e8b\u9805\n<ul>\n    <li>Manage store settings. \u7ba1\u7406\u5546\u5e97\u8a2d\u5b9a<\/li>\n    <li>Manage products, categories, brands, product attributes. \u7ba1\u7406\u7522\u54c1\u3001\u76ee\u9304\u3001\u54c1\u724c\u3001\u7522\u54c1\u8cc7\u6599<\/li>\n    <li>Manage sales orders and can generate reports. \u7ba1\u7406\u92b7\u552e\u8a02\u55ae\uff0c\u4e26\u7522\u751f\u5404\u5f0f\u5831\u8868<\/li>\n    <li>Manage payment methods available to customers. \u7ba1\u7406\u5ba2\u6236\u7684\u53ef\u7528\u4ed8\u6b3e\u65b9\u6cd5<\/li>\n    <li>Manage Shipping methods available to customers.\u00a0 \u7ba1\u7406\u5ba2\u6236\u7684\u53ef\u7528\u8ca8\u7269\u7269\u6d41\u65b9\u6cd5<\/li>\n    <li>Manage admin users so other staff members use the admin area. \u7ba1\u7406\u4f7f\u7528\u8005\u5e33\u865f\uff0c\u8b93\u5176\u4ed6\u8077\u54e1\/\u5e97\u54e1\u4e5f\u80fd\u4f7f\u7528\u5f8c\u53f0\u7ba1\u7406\u4ecb\u9762\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\u9019\u500b\u7cfb\u7d71\u4f7f\u7528 \u00a0<a href=\"http:\/\/bootstrap-ecommerce.com\/\">Bootstrap E-commerce UI Kit<\/a> \u4f5c\u70ba\u524d\u7aef\u5de5\u5177\uff0c <a href=\"https:\/\/github.com\/pratikborsadiya\/vali-admin\">Vali Admin<\/a> \u70ba\u5f8c\u7aef\u7ba1\u7406\u4ecb\u9762\u7bc4\u672c\uff0c\u90192\u500b\u5de5\u5177\u90fd\u662f\u4f7f\u7528Bootstrap 4\u70ba\u57fa\u5e95\u6240\u958b\u767c\u51fa\u4f86\u7684\uff1f\n&nbsp;\n<span style=\"font-size: 14pt\"><strong>\u76f4\u63a5run\u4f5c\u8005\u63d0\u4f9b\u7684\u6e90\u78bc (20200622)<\/strong><\/span>\n\n<ul>\n    <li>\u4e0b\u8f09\u4e26\u89e3\u958b\u5728 github\u4e0a\u7684<a href=\"https:\/\/github.com\/LaraShout\/laravel-ecommerce-application\">\u6e90\u78bc<\/a><\/li>\n    <li>\u57f7\u884c composer install<\/li>\n    <li>\u4f9d\u7167.env\u4e0a\u7684\u8cc7\u6599\u5eab\u8a2d\u5b9a\u65b0\u589e\u4e00\u500b\u8cc7\u6599\u5eab(homestead\uff0c\u4e26\u8a2d\u7f6e\u8cc7\u6599\u5eab\u5e33\u865f\u8207\u5bc6\u78bc)<\/li>\n    <li>\u57f7\u884c php artisan migrate\uff0c\u5efa\u7acb\u5c08\u6848\u7684\u8868\u683c\uff0c\u4e0d\u904e\u6ce8\u610f\uff0c\u5728\u9019\u500b\u6b65\u9a5f\u5efa\u7acb\u9023\u5916\u9375\u6642\u6703\u51fa\u73fe\u8a31\u591a\u932f\u8aa4\uff0c\u5fc5\u9808\u4f9d\u7167\u767c\u751f\u7684\u932f\u8aa4\u8a0a\u606f\u81f3Databasemigrations\u76ee\u9304\u627e\u76f8\u95dc\u7684\u8868\u683cschema\uff0c\u628a\u9023\u5916\u9375\u7684unsignedInteger\u6539\u6210unsignedBigInteger\uff0c\u4f8b\uff1a\n<ul>\n    <li>$table-&gt;unsignedBigInteger(&#8216;attribute_id&#8217;);\n$table-&gt;foreign(&#8216;attribute_id&#8217;)-&gt;references(&#8216;id&#8217;)-&gt;on(&#8216;attributes&#8217;);<\/li>\n    <li>\u6bcf\u6b21\u4fee\u6539\u5b8c\u8981\u628a\u5df2\u5efa\u7acb\u7684\u8cc7\u6599\u8868\u683c\u5b8c\u5168\u522a\u9664\u518d\u91cd\u8986migrate\u57f7\u884c<\/li>\n    <li><strong><span style=\"text-decoration: underline;font-size: 14pt\">\u82e5\u4e0d\u60f3\u4fe2\u6539\uff0c\u8acb\u4e0b\u8f09\u5df2\u5b8c\u6210\u7684\u4fee\u6539 (\u4e0b\u8f09\u89e3\u958b\u81f3databasemigrations)\uff1a<a href=\"https:\/\/fgchen.com\/wp\/wp-content\/uploads\/2020\/06\/laravel-ec-migrations.zip\" target=\"_blank\" rel=\"noopener noreferrer\">migration<\/a>\u00a0 \u00a0\u6216<\/span><span style=\"font-size: 14pt\">\u4e0b\u8f09\u6574\u500b\u5b8c\u6574\u7684\u5c08\u6848 <a href=\"https:\/\/drive.google.com\/file\/d\/1zAWkhLthkjqsRrA1UWKFBOGg17IYueq3\/view?usp=sharing\" target=\"_blank\" rel=\"noopener noreferrer\">\u8f09\u9ede<\/a><\/span><\/strong><\/li>\n<\/ul>\n<\/li>\n    <li>\u57f7\u884c php artisan migrate &#8211; -seed (2\u500b\u6a6b\u7dda)<\/li>\n    <li>\u57f7\u884c npm install\u00a0 (\u9700\u5148\u5b89\u88ddNodejs)<\/li>\n    <li>\u57f7\u884c npm run watch (\u9019\u500b\u6b65\u9a5f\u6703\u5c07\u9700\u8981\u7528\u5230\u7684\u524d\u7aef\u5957\u4ef6\u8907\u88fd\u5230public\u76ee\u9304)<\/li>\n    <li>php artisan serve<\/li>\n    <li>\u6210\u529f\u57f7\u884c\u51fa\u73fe\u7684\u756b\u9762\uff1a<\/li>\n<\/ul>\n\n<a href=\"https:\/\/fgchen.com\/wp\/wp-content\/uploads\/2020\/06\/Laravel-E-C-main.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-16402\" src=\"https:\/\/fgchen.com\/wp\/wp-content\/uploads\/2020\/06\/Laravel-E-C-main.png\" alt=\"\" width=\"1365\" height=\"743\" \/><\/a>\n&nbsp;\n\n<ol class=\"rcc-posts\">\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-ecommerce-application-development-introduction\">Laravel E-Commerce Application Development \u2013 Introduction<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-initial-project-setup\">Laravel E-Commerce Application Development \u2013 Initial Project Setup<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-assets-setup-using-laravel-mix\">Laravel E-Commerce Application Development \u2013 Assets Setup Using Laravel Mix<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/admin-model-migration\">Laravel E-Commerce Application Development \u2013 Admin Model and Migration<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/backend-admin-authentication\">Laravel E-Commerce Application Development \u2013 Backend Admin Authentication<\/a><\/span><\/li>\n<\/ol>\n\n\u7b46\u8a18\uff1aadmin.php\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">&lt;?php\nRoute::group(['prefix'  =&gt;  'admin'], function () {\n    Route::get('login', 'AdminLoginController@showLoginForm')-&gt;name('admin.login');\n    Route::post('login', 'AdminLoginController@login')-&gt;name('admin.login.post');\n    Route::get('logout', 'AdminLoginController@logout')-&gt;name('admin.logout');\n    \/\/ Route::get('\/', function () {\n    \/\/     return view('admin.dashboard.index');\n    \/\/ });\n    Route::group(['middleware' =&gt; ['auth:admin']], function () {\n        Route::get('\/', function () {\n            return view('admin.dashboard.index');\n        })-&gt;name('admin.dashboard');\n    });\n});\n\/\/ Route::group(['middleware' =&gt; ['auth:admin']], function () {\n\/\/\n\/\/     Route::get('\/', function () {\n\/\/         return view('admin.dashboard.index');\n\/\/     })-&gt;name('admin.dashboard');\n\/\/\n\/\/ });\n<\/pre>\n\n&nbsp;\n\n<ol class=\"rcc-posts\" start=\"6\">\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/base-controller-and-repository\">Laravel E-Commerce Application Development \u2013 Base Controller and Repository<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/settings-section-part-1\">Laravel E-Commerce Application Development \u2013 Settings Section Part 1<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/settings-section-part-2\">Laravel E-Commerce Application Development \u2013 Settings Section Part 2<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/categories-section-part-1\">Laravel E-Commerce Application Development \u2013 Categories Section Part 1<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-categories-section-part-2\">Laravel E-Commerce Application Development \u2013 Categories Section Part 2<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/attributes-section-part-1\">Laravel E-Commerce Application Development \u2013 Attributes Section Part 1<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/attributes-section-part-2\">Laravel E-Commerce Application Development \u2013 Attributes Section Part 2<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/attributes-section-part-3\">Laravel E-Commerce Application Development \u2013 Attributes Section Part 3<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/brands-section\">Laravel E-Commerce Application Development \u2013 Brands Section<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/products-section-part-1\">Laravel E-Commerce Application Development \u2013 Products Section Part 1<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/products-section-part-2\">Laravel E-Commerce Application Development \u2013 Products Section Part 2<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/products-section-part-3\">Laravel E-Commerce Application Development \u2013 Products Section Part 3<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/products-section-part-4\">Laravel E-Commerce Application Development \u2013 Products Section Part 4<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/frontend-login-registration\">Laravel E-Commerce Application Development \u2013 Frontend Login &amp; Registration<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/categories-navigation\">Laravel E-Commerce Application Development \u2013 Categories Navigation<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-catalog-listing\">Laravel E-Commerce Application Development \u2013 Catalog Listing<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-product-details-page\">Laravel E-Commerce Application Development \u2013 Product Details Page<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-shopping-cart\">Laravel E-Commerce Application Development \u2013 Shopping Cart<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-checkout\">Laravel E-Commerce Application Development \u2013 Checkout<\/a><\/span><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/payment-processing\">Laravel E-Commerce Application Development \u2013 Payment Processing<\/a><\/span><\/li>\n    <li><a href=\"https:\/\/www.larashout.com\/order-management\"><span class=\"rcc-list-item\"><span class=\"rcc-current-post\">Laravel E-Commerce Application Development \u2013 Order Management<\/span><\/span><\/a><\/li>\n    <li><span class=\"rcc-list-item\"><a href=\"https:\/\/www.larashout.com\/laravel-e-commerce-application-development-wrap-up\">Laravel E-Commerce Application Development \u2013 Wrap Up<\/a><\/span><\/li>\n<\/ol>\n\n&nbsp;\n&nbsp;\n&nbsp;","protected":false},"excerpt":{"rendered":"<p>\u4f86\u6e90\uff1aLaravel E-Commerce Application Develo &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[266],"tags":[],"class_list":["post-12186","post","type-post","status-publish","format-standard","hentry","category-266"],"_links":{"self":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/comments?post=12186"}],"version-history":[{"count":1,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12186\/revisions"}],"predecessor-version":[{"id":13693,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12186\/revisions\/13693"}],"wp:attachment":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/media?parent=12186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/categories?post=12186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/tags?post=12186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}