7-Views - Developers Blog
How to ignore TypeScript errors with @ts-ignore?
You can stop using @ts-ignore Or you can disable the eslint rule. Add that in your eslint config (.eslintrc or equivalent) “rules”: { “@typescript-eslint/ban-ts-ignore”: “off” } If you are using @typescript-eslint/eslint-plugin version 2.18 or higher, the rule is called ban-ts-comment and you need to add “@typescript-eslint/ban-ts-comment”: “off”
Disable ONLY_FULL_GROUP_BY
If you want to disable this from Ubuntu 18+ please follow following details. Go To Command Prompt cd /etc/mysql/conf.d sudo nano disable_strict_mode.cnf and add following Snippet [mysqld] sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION save and then restart and mysql. it will work.
How to install PhpStorm On Ubuntu
Installation: I tried to install PhpStorm in ubuntu using the snap, but the issue with this is its using older version. here is the another way to install PhpStorm latest version in ubuntu using simple steps. Download the stable release from here. It will download the file inside the “Downloads” Directory. Step1: Go to Download […]
How to Configure SMTP using MailHog in Laravel using Homestead
MailHog is enabled by defualt in HomeStead. In your .env file replace the Mail Settings. MAIL_DRIVER=smtp MAIL_HOST=127.0.0.1 MAIL_PORT=1025 MAIL_USERNAME=testuser MAIL_PASSWORD=testpwd MAIL_ENCRYPTION=null Clear you cache by using php artisan optimize:clear and just open follwing url in your tab. http://192.168.10.10:8025 and its done!!!
Check For Foreign Key Constraint Violation In Laravel
DB::statement(‘SET FOREIGN_KEY_CHECKS=0;’); //Check Disable //DO YOUR OPERATION HERE DB::statement(‘SET FOREIGN_KEY_CHECKS=1;’); //Check enable