目录
Laravel 5 实例教程
Laravel 5 实例,一个比较好的教程应用 (法语 there).
安装(如果git,php命令不能用,那是因为没有加入系统的path变量)
- git clone https://github.com/bestmomo/laravel5-example.git projectname
- cd projectname
- composer install
- php artisan key:generate
- 修改 .env 文件并创建一个数据库
- php artisan migrate –seed 创建数据表
- 配置 config/mail.php 邮件发送
- php artisan vendor:publish
- php artisan serve 启动本地应用,访问 http://localhost:8000/ ,这句酌情省略。
文件包括:
- HTML5 Boilerplate 前端模板
- Bootstrap CSS 和jQuery 框架
- Font Awesome 图标库
- Highlight.js 高亮代码
- Startbootstrap 引导模板
- CKEditor 编辑器
- Filemanager 文件管理器
特点:
- 官方主页
- 自定义错误页面 404
- 验证系统 (注册, 登录, logout, password reset, mail confirmation, throttle)
- 用户角色 : administrator管理员 (all access), redactor编辑 (create and edit post, upload and use medias in personnal directory), and user 用户(create comment in blog)
- 博客,可以评论
- 文章搜索
- 文章标签
- Contact us 页面
- 管理页面Admin dashboard with new messages, users, posts and comments
- 用户管理 (roles filter, show, edit, delete, create)
- 消息管理
- 文章管理 (list with dynamic order, show, edit, delete, create)
- 媒体管理
- 本地化,多语言
Packages 包括
- laravelcollective/html
- bestmomo/filemanager
提示:
以下是不同角色的账户,登录可以查看不同的页面
- Administrator : email = admin@la.fr, password = admin
- Redactor : email = redac@la.fr, password = redac
- User : email = walker@la.fr, password = walker
- User : email = slacker@la.fr, password = slacker