Laravel 5.2 is already good at sanitizing input data received from GET and POST data, but it doesn’t remove excessive spacing at the beginning or end of the data. Luckily, this is easy to achieve using Custom Middleware.
- Home
- Blog (Page 5)
Replicating a Remote MySQL Database to Local Environment / Server
Ever needed to copy a remote database into a local environment to run tests on? This tutorial includes a bash command line script you can use to easily replicate a remote MySQL database to another environment.
Backup, Bash, Command Line, MySQLLaravel 5.2: Running SSH / SFTP Commands In Your Scripts
Recently, I had to create a Laravel Artisan script that would log into a SFTP server, check if a certain file exists, and then upload / override the file. To achieve this, I used the SSH library from LaravelCollective. This tutorial covers how to log into a remote server using SSH / SFTP and upload or download files.
Laravel 5, PHP, SFTP, SSHJavaScript: Using Moment.js to Display Dates & Times in User’s Timezone
This tutorial shows how you can use Moment.js in your website or application to display dates and times in the user’s local timezone. It’s easy to use and makes working with dates and times much easier in JavaScript.
JavaScript, Moment.js, Time ManipulationCordova: Changing the Default Debug Keystore for Android Applications
I’ve already covered release signing Android application in Cordova in a previous article, but sometimes you want to do the same for debug builds. By default, Cordova uses it’s own debug keystore, but it’s easy to customise your project to use a keystore of your choice when creating debug builds.
Android, Code Signing, Cordova, Debug, Google Play Store, SecurityCreating / Editing a PDF Using PHP
In a recent project, I was asked to create a dynamically generated PDF with the user’s information. In my research, I found that using FPDF was the best the best way to achieve the client’s requirements. Here is a quick tutorial on how you can use a existing PDF with dynamic content using only PHP.
Composer, PDF, PHP, Tutorial