Skip to content

Webb-L/bbl_cinema

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages