Skip to content

F1.22 Laravel(Lumen) Security Step4: Migrate or create tables (Wpf, Xamarin, Angular SPA, Reactjs SPA)

chempkovsky edited this page Oct 4, 2021 · 1 revision

Make sure your project meets the requirements:

  • Open the file
    • database/migrations/2021_10_12_100000_LitDbContextMigration.php
  • read the instructions at the beginning of the file

picture

  • We are going to create lumaspnet-database
        'aspnetforphpchckdbcontext' => [
            'url' => 'mysql://root:here_is_password@127.0.0.1:3306/lumaspnet?serverVersion=8.0&charset=utf8mb4',
        ],

Create database:

  • run cmd
  • run cd c:\dev\lumlit
  • run php artisan command:crtdb

picture

Create tables:

  • run cmd
  • run cd c:\dev\lumlit
  • run php artisan migrate --database=aspnetforphpchckdbcontext --path=database/migrations/2021_10_14_100000_aspnetforphpchckdbcontextMigration.php

picture

  • Here is a result

picture

Clone this wiki locally