《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
高认可度评论:
类文件 => 大驼峰,普通文件=> 下划线,方法 => 小驼峰,函数 => 下划线,变量 => 小驼峰,常量 => 全大写 +下划线
看你公司的规范,如果都是用驼峰,就也还是驼峰,比如 aBadAppleBelongBoss 长点没事 只要清晰易懂是最主要的
看这个项目的规范,如果是新项目建议驼峰,和laravel保持一致,如果是老项目,以前怎么命名现在就这么命名!
python下划线,php和java驼峰
保证项目整齐划一,PSR规范都可以。
类文件 => 大驼峰,普通文件=> 下划线,方法 => 小驼峰,函数 => 下划线,变量 => 小驼峰,常量 => 全大写 +下划线
路由中的url部分,用中划线。参数部分用下划线
和团队保持一致,没有的话就使用驼峰
下划线太多,一行会太多字,建议驼峰
变量用小写下划线,其余用驼峰
Follow Laravel naming conventions
Follow PSR standards.
Also, follow naming conventions accepted by Laravel community:
ArticlesControllerarticle/1users.show-active, show-active-usersUsersarticleComments, article_commentarticleComment, article_commentsarticle_comment, articleCommentsuser_article, articles_usersMetaTitle; article_meta_title$model->createdAtArticleId, id_article, articles_idcustom_id2017_01_01_000000_articlesget_allsaveArticletest_guest_cannot_see_article$articles_with_author$active, $data$users, $objArticlesEnabled; articles-enabledshowFiltered.blade.php, show_filtered.blade.phpgoogleCalendar.php, google-calendar.phpAuthenticatable, IAuthenticationNotificationTrait