Skip to content

Instantly share code, notes, and snippets.

@jdecode
Created March 22, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdecode/04ff842542da94a31a98d86fdd1909c2 to your computer and use it in GitHub Desktop.
Save jdecode/04ff842542da94a31a98d86fdd1909c2 to your computer and use it in GitHub Desktop.
CakePHP setup using docker-compose, and other stuff
  1. Create migration for table sources : bin/cake bake migration CreateSources name:string status:boolean

  2. Create seeder for a table called sources : php vendor/bin/phinx seed:create --path=config/Seeds SourceSeeder

  3. Run migration and seeder : bin/cake migrations migrate and bin/cake migrations seed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment