Web Niraj
  • Facebook
  • Flickr
  • Github
  • Linkedin
  • Twitter
  • YouTube
Online portfolio, code examples and developer blog
  • About
  • Contact
  • Portfolio
  • WordPress
Search the site...
  • Home
  • Posts tagged "Laravel 5"

Posts tagged "Laravel 5"

Laravel 5.2: Triggering Password Resets Outside of PasswordController

0

In a recent project I’ve been building a Customer Service Portal where “agents” are allowed to perform certain actions on a user’s account. One of the required features was to send a password reset email to the user. Luckily, this feature is easy to implement thanks to Laravel’s built-in traits.

Read More

Laravel 5, Security, Tutorial

Laravel 5.x: Custom Password Reset Validation

0

Having a strong password policy for your application is a important security requirement for any application. This tutorial shows you how you can apply this to Larvel’s PasswordController, which handles password resets.

Read More

Input Sanitization, Laravel 5, Laravel 5.2, PHP, Security

Laravel 5.2: More SSH / SFTP Commands

1

I recently found that the SSH library from LaravelCollective uses was quite limited in what it allowed. However, by accessing the underlying libraries, you can extend the functionality available to interact further with SSH / SFTP servers.

Read More

Laravel 5, PHP, SFTP, SSH

Laravel 5.2: Trim All Input using Middleware

0

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.

Read More

Input Sanitization, Laravel 5, Laravel 5.2, PHP

Laravel 5.2: Running SSH / SFTP Commands In Your Scripts

1

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.

Read More

Laravel 5, PHP, SFTP, SSH

Laravel 5.x: Custom Validation Rules

2

This tutorial shows you how to extend Laravel 5.x to include custom validation rules. In this case, how to check if a field matches the current user’s stored password, when the user wants to change their password.

Read More

Laravel 5, PHP, Tutorial

Laravel 5.x: Redirect CSRF Errors to Previous Page

4

I have always found it frustrating that failing the CSRF check in Laravel 5.x throws an exception. I would rather prefer it redirect the user back to the previous page, and get them to try again. So, I modified the VerifyCsrfToken.php middleware to do just that.

Read More

CSRF, Laravel 5, PHP, Tutorial

StackExchange / StackOverflow

profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

Support Me

Buy Me a Coffee

PSN Profile

Tags

ACL Amazon Amazon Web Services Android Android 4.4 KitKat Android 5.0 Lollipop Apache Backup Bug Command Line Cordova cPanel / WHM Facebook Facebook Graph API Facebook PHP SDK 4.0 Facebook Social Plugins Fan Page Firewall Flash Gadget Geolocation Google Nexus 5 Hacking HTML5 iOS JavaScript jQuery Laravel 5 Linux NodeJS Parse PDF PHP Plugin Portfolio PS4 Review Security Server SSH SSL Sysadmin Tutorial WordPress WordPress Plugins
© 2011-2025 Niraj Shah
  • Blog
  • Portfolio
  • WordPress
  • About Me
  • Contact Me
  • Privacy Policy
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Privacy Policy