quick intro on how to code – variable, operation, integer, string, list (array)
some controls – if else, for, functions
click on “next” at the bottom to go through the rest of the doc for more advanced functions.
quick intro on how to code – variable, operation, integer, string, list (array)
some controls – if else, for, functions
click on “next” at the bottom to go through the rest of the doc for more advanced functions.
Add these lines to .htaccess to force https
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Use the following library to easily talk to any API services. Without having to deal with cURL
http://requests.ryanmccue.info/
http://docs.guzzlephp.org/en/stable/
Use postman to simulate the REST API call
This is a useful generator for crontab command line
You can set for every minute/hour, set by time range etc.
crontab.guru
Below are scenarios that may cause duplicates
Solutions
I’ve been using laravel for years already. Now I need to move to Laravel and I need strong reasons why I should.
Here I compiled some
And below are the articles you may wan to read that are also my reference to the above points.
Some useful laravel packages
Sometimes we construct an array in a loop and end up with an empty element at the end (or beginning) of the array.
It will look something like elem1,elem2,elem3,
To remove empty element from an array, can simply use array_filter function
Be careful, by removing empty it includes false, null, ” etc.