Execute the following command to create a migration file under the database directory in a Lavarel project: php artisan make:migration
Tag: PHP
Twilio API Calls
An example of translating definition from Twilio API Explorer to an actual call in the code: Click here to see
Okta Event Hooks
What are the Okta Event Hooks: Event Hooks are Okta’s implementation of the industry concept of webhooks Event Hooks are
Laravel Query Builder
A good article on DB::RAW Some general examples Racing condition: Breaking Laravel’s firstOrCreate using race conditions To solve this problem
Laravel Cronjobs
Reference: https://laravel.com/docs/5.8/scheduling#introduction Laravel task schedule is defined in the app/Console/Kernel.php file’s schedule method. Create a new Laravel project laravel new (project name)
Laravel Artisan Commands
Install and create a laravel project laravel new (project name) or composer create-project –prefer-dist laravel/laravel (project name) Install ui authentication
AWS PHP SDK Requirments
Enable Openssl and cURL If you are using XAMPP, these utilities are already installed. Enable the following in xampp/php/php.ini in
PHP SSH – Using phpseclib to SFTP
Phpseclib is a package of code that allows PHP programs to initiate actions, such as SFTP , using SSH. Here
Dolibarr Module development
Module tutorial https://wiki.dolibarr.org/index.php/Module_development Dolibarr development https://wiki.dolibarr.org/index.php/Developer_documentation Using Module Builder In Dolibarr 8.0 to Generate a Test Module Change paths in htdocs/conf/conf.php
PHP with Postgresql
If PHP is installed as part of XAMPP, it will work with MySQL/MariaDB with no additional change. However, to work