GithubHelp home page GithubHelp logo

vvk / laravel_blog Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 12.36 MB

A blog based on laravel5.6

Home Page: https://www.sviping.com

License: MIT License

PHP 52.24% Vue 0.13% Shell 0.11% Blade 47.51%
blog laravel vvk sunwq php

laravel_blog's Introduction

基于Laravel5.6 开发发的博客

本博客基于Laravel5.6,所以要求 PHP>=7.2

  • 克隆源代码到本地:
   git clone [email protected]:vvk/laravel_blog.git
  • 安装依赖包
   composer install
  • 生成配置文件
   cp .env.example .env 
  • 编辑 .env 文件里的下面内容为自己的实际配置信息
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
  • 执行数据库迁移
php artisan migrate
  • 填充初始数据
php artisan db:seed

至此,博客安装完成

  • 前台地址:http://example.com
  • 后台地址:http://example.com/admin
  • 账号/密码:admin/admin
  • 图床功能
    默认已添加图片功能,目前只支持上传到又拍云云存储上(后台添加文章、分类缩略图也可以使用又拍云驱动),使用的驱动是 https://github.com/vvk/upyun-filesystem
    或要使用图床功能,首先需要在又拍云上购买相应的服务,然后修改.env中的默认配置:
UPYUN_SERVICE=xxx
UPYUN_OPERATOR=xxx
UPYUN_PASSWORD=xxx
UPYUN_DOMAIND=u-cdn.sviping.com

如果这四项没有配置,则图床功能不能使用。

laravel_blog's People

Contributors

vvk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

laravel_blog's Issues

good job

qing ge jia you
yue lai yue niu pi

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.