Code Monkey home page Code Monkey logo

xdlsystem's Introduction

Project started 😀😬✊🍺👏

xdl laravel

  • 添加后台模块 Laravel-admin
  • 模型类统一放置在 app/Models下

相关包

sql

users       用户信息 
identities    用户身份
users_identities 用户信息身份关联  (还未建)
questions    问题信息
techtags     问题标签
questions_techtags      问题信息 与 问题标签关联表
questions_comments      问题评论表
    question_id comment 
notifications    通知表(用户提问,email通知给指定用户)
operating   操作表(用户对问题的操作)
    int user_id int question_id bool voteup bool votedown bool collection
posts   文章信息
comments    评论表
    question_id user_id content

    show_segment.blade.php

Todo: 基于问题评论表的评论

缓存修改

缓存驱动修改(两种方式任选):

  • config/cache.php下将'default' => env('CACHE_DRIVER', 'file') 改为 'default' => 'redis'
  • .envCACHE_DRIVER改driver,为redis

具体redis配置见config/database.php

页面浏览量

通过redis缓存

App/Providers/EventServiceProvider.php注册监听事件,php artisan event:generate 生成事件和监听文件 实际上可以理解App/Event/QuestionViewCount.php来传递数据,App/Listeners/QuestionEventListener.php来处理具体逻辑

redis

由于redis用的较少,记录下相关信息

redis-serverRedis的服务器,启动Redis即运行redis-server;而redis-cliRedis自带的命令行客户端

热门排序算法

参照stackoverflow算法

基于用户投票的排名算法:Stack Overflow

设置/删除密码

FAQ

withInput 可以代替 old功能
[评论系统设计](http://ratwu.com/2011/11/comment/)

获取最近执行sql的查询语句

xdlsystem's People

Contributors

shutdowndapp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.