Snippets Collections
// Display Object or Array
public function oa($model)
{
    if (gettype($model) === 'object') {
        dump(get_class($model));
        dump($model->toArray());
    } else {
        dump(gettype($model));
        dump($model);
    }
}
// Display string
public function s($model)
{
    dump($model);
}
php bin/magento setup:install --base-url=http://127.0.0.1/magento245/pub --db-host=localhost --db-name=magento245 --db-user=root --admin-firstname=Admin --admin-lastname=admin --admin-email=admin@gmail.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1 --search-engine=elasticsearch7 --elasticsearch-host=localhost --elasticsearch-port=9200
 sudo php bin/magento deploy:mode:set developer
from setuptools import setup, find_packages

setup(
  name="package-name",
  version="0.0.0",
  packages=find_packages(),
  entry_points = {
    'console_scripts':
      ["command = package_name.module_name:function_name"],
    },
)
star

Thu Feb 02 2023 15:11:21 GMT+0000 (Coordinated Universal Time)

#php #laravel #command
star

Mon Jan 30 2023 05:17:49 GMT+0000 (Coordinated Universal Time)

#magento2 #command
star

Mon Jan 30 2023 05:08:02 GMT+0000 (Coordinated Universal Time)

#magento2 #command
star

Tue Jun 30 2020 22:39:10 GMT+0000 (Coordinated Universal Time)

#python #command

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension