Giter VIP home page Giter VIP logo

laravel-blog's Introduction

Build Status Total Downloads Latest Stable Version License

零里君的博客

初始化工作

安装扩展包依赖

composer install

修改配置文件

cp .env.example .env

配置文件说明

...

DB_CONNECTION=mysql             # 数据库的连接类型
DB_HOST=127.0.0.1               # 数据库的连接地址
DB_PORT=3306                    # 数据库的连接端口
DB_DATABASE=homestead           # 数据库的库名
DB_USERNAME=homestead           # 数据库的用户名
DB_PASSWORD=secret              # 数据库的密码

...

MAIL_DRIVER=smtp                # 邮箱通讯协议
MAIL_HOST=smtp.mailtrap.io      # 邮箱服务器
MAIL_PORT=2525                  # 连接服务的端口
MAIL_USERNAME=null              # 连接服务器所用邮箱
MAIL_PASSWORD=null              # 你邮箱的授权码
MAIL_FROM_ADDRESS=YOUR_EMAIL    # 发邮件的邮箱
MAIL_FROM_NAME=YOUR_NAME        # 邮件发件人
MAIL_ENCRYPTION=SSL             # 加密技术

...

生成随机字串作为应用的秘钥

php artisan key:generate

创建文件资源软链接

php artisan storage:link

执行数据库迁移

php artisan migrate

填充初始数据

php artisan db:seed

安装node.js

直接去官网 https://nodejs.org/en/ 下载安装最新版本。

安装 Laravel Mix

npm install

如果嫌弃国内npm下载慢的话,可以使用淘宝NPM镜像:http://npm.taobao.org/

直接 Mix 编译前端内容

开发环境使用:

npm run dev

生产环境请使用:

npm run production

监控修改并自动编译:

npm run watch

前后台入口

如果要开启调试模式,请修改 .env 文件, APP_ENV=localAPP_DEBUG=true

默认用户名:[email protected] 密码:secret

laravel-blog's People

Contributors

qiyez avatar

Stargazers

 avatar  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.