Giter VIP home page Giter VIP logo

bbl_cinema's Introduction

BBL电影院售票系统安装

  1. 创建数据库

  2. 打开根目录.env文件,把DB_DATABASE=bbl中的bbl替换为你创建的数据库名称,把DB_USERNAME=root中的root替换为数据库用户名,把DB_PASSWORD=root中的root替换为数据库密码。注意:一定要保证数据库信息正确,如果不正确下面的步骤不会成功!

  3. 在项目根目录命令行工具执行php artisan migrate:install成功会如下所示。(请先配置好PHP环境变量再执行)

    $ php migrate:install
    Migration table created successfully.
  4. 然后执行php artisan migrate创建数据表,成功会如下所示。(如果上面步骤报错,这条命令不会有效果)

  5. $ php artisan migrate
    Migrating: 2014_10_12_000000_create_users_table
    Migrated:  2014_10_12_000000_create_users_table
    Migrating: 2019_11_18_010816_create_vote_table
    Migrated:  2019_11_18_010816_create_vote_table
    Migrating: 2019_11_19_020629_create_purchase_table
    Migrated:  2019_11_19_020629_create_purchase_table
    Migrating: 2019_11_19_070217_create_movie_table
    Migrated:  2019_11_19_070217_create_movie_table
  6. 最后执行php artisan db:seed填充数据,成功会如下所示。(如果失败的手动添加数据)

  $ php artisan db:seed 
  Seeding: VoteTableSeeder
  Seeding: MovieTableSeeder

bbl_cinema's People

Contributors

webb-l avatar dependabot[bot] avatar

Stargazers

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