Coder Social home page Coder Social logo

library's Introduction

1.本地运行环境配置

Mysql

安装 Mysql 5.7 以上版本 以及 系统环境变量配置

查看版本 cmd

mysql -V

image-20220814100301621

​ Laravel 根目录下的 .env 文件

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=library  # 自定义数据库名
DB_USERNAME=root	 # Mysql 用户名
DB_PASSWORD=root	 # Mysql 密码

PHP

安装 7.3 以上版本的 php 以及系统环境变量配置

查看版本 CMD

php -v

image-20220814100207944

2.运行数据迁移

Windows 终端进入 laravel 根目录

数据迁移

php artisan migrate

3.执行数据填充

运行Seeder

生成 Composer 的自动加载器

composer dump-autoload

填充数据(1000个座位)

 php artisan db:seed --class=SeatTableSeeder

4.启动本地服务

php artisan serve 

最后QQ邮箱登录 测试

library's People

Contributors

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