banner 728x90

Bake a model for users table

Bake a model for users table
Setup Database Connection Edit config/app.php Bake Contoh root@b75c5d942521:/var/www# ./bin/cake bake model Choose a model to bake from the following: - Users root@b75c5d942521:/var/www# ./bin/cake bake model Users One moment while associations are detected. Baking table class for Users... Creating file /var/www/src/Contoh/Table/UsersTable.php Wrote `/var/www/src/Contoh/Table/UsersTable.php` Deleted `/var/www/src/Contoh/Table/empty` Baking entity class for User... Creating file /var/www/src/Contoh/Entity/User.php Wrote `/var/www/src/Contoh/Entity/User.php` Deleted `/var/www/src/Contoh/Entity/empty` Baking test fixture for Users... Creating file /var/www/tests/Fixture/UsersFixture.php Wrote `/var/www/tests/Fixture/UsersFixture.php` Deleted `/var/www/tests/Fixture/empty` Bake is detecting possible fixtures... Baking test case for AppModelTableUsersTable ... Creating
banner 728x90

CakePHP 3.6.12 Migration (Phinx)

CakePHP 3.6.12 Migration (Phinx)
Phinx Phinx is a standalone command line tool for managing database Migrations. The official Migrations plugin for CakePHP is based on this tool. Composer Install Phinx (Mine is in the Docker Container) root@b75c5d942521:/var/www# composer require robmorgan/phinx Do not run Composer as root/super user! See https://getcomposer.org/root for details Using version ^0.10.6 for robmorgan/phinx ./composer.json has been updated 1/1: http://packagist.org/p/provider-latest$1c25e7d4b2021ab02c5f787753a04479e835647834fff24e816493dcb3b64a52.json Finished: success: 1, skipped: 0, failure: 0, total: 1 Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to

CakePhp 3.6 Installation on Ubuntu 18

CakePhp 3.6 Installation on Ubuntu 18
My Laptop Environment ╭─yusuf@yusuf-berkarya ~/htdocs/mycake1 ╰─➤ php -v PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) Hak cipta (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Hak cipta (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Hak cipta (c) 1999-2018, by Zend Technologies ╭─yusuf@yusuf-berkarya ~/htdocs/mycake1 ╰─➤ lsb_release --a LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic CakePHP 3.6 Instalation ╭─yusuf@yusuf-berkarya ~/htdocs ╰─➤ composer create-project --prefer-dist cakephp/app mycake1 127 ↵ Installing