Month: March 2018

Laravel database seeding

Laravel migration with database seeding

In this tutorial, we will learn how to use laravel migrations and seeders for them. Laravel provides great functionality to create migrations which are the schema for the database. Laravel also provides the functionality to create fake data through fzaninotto/faker...

/ March 31, 2018
loop variable in foreach in Laravel

Using the $loop variable in foreach loops in Laravel

Laravel blade has a foreach directive that we can use the same way as we use the foreach loop in PHP. @foreach directive is more powerful than a normal foreach loop because of the $loop variable that is available inside every...

/ March 29, 2018
CSRF protection in Laravel

Laravel: How to Avoid TokenMismatchException CSRF Token on certain routes using a method

If you stay on one form for too long or you are using some third-party APIs, you get TokenMismatchException. Therefore, you want to get rid of CSRF protection for certain routes. Removing middleware Now, there are a lot of options....

/ March 28, 2018
redirectTo after login/registration

Redirect after login or register in Laravel: Adding a custom method

Laravel built-in authentication system has a $redirectTo property that you can use to customize where the user will be redirected after successful login/registration. But we can customize even more than that. By default, app/Http/Controllers/Auth/RegisterController.php has the $redirectTo property. class RegisterController extends Controller...

/ March 27, 2018
Best PHP Frameworks

Top 10 best PHP Frameworks for Developers

An overview of the Top 10 best PHP frameworks for web development to find out how to make your workflow faster and easier. Introduction PHP is a popular server-side scripting language designed primarily for the web development. Originally created by...

/ March 21, 2018
Using ReCaptcha with Laravel

Google Recaptcha in Laravel Application

Google ReCaptcha is a captcha like system. It assures that a computer user is a human. It is the best and most used captcha system available where users are only required to click on a checkbox and in some cases...

/ March 17, 2018

Creating a Cryptocurrency Telegram Bot API with Laravel

Telegram is a non-profit cloud-based instant messaging service. It is similar to many other messaging applications like WhatsApp and Messenger but offers great security. Telegram apps are available for multiple operating systems. Telegram released their bot platform in 2015. We...

/ March 9, 2018
Master Regular Expressions Part 2

Master Regular Expressions Part 2: Literal Characters, Global Mode, Meta-characters and escaping character

In this part 2 of the series: Master Regular Expressions, we will discuss literal characters, global mode, metacharacters, and escaping character. Literal Characters Let’s start learning the syntax of regular expressions with the simplest match of all, a literal character. In...

/ March 6, 2018
best laravel helpers

10 Best Laravel helpers to consider using

Laravel includes a variety of global helper functions. There are a ton of helper functions included with laravel that you can use to make your development workflow easier. Here, I will be writing 10 best laravel helpers that I use...

/ March 4, 2018

Create Code Screenshots from your editor using carbon and Polacode

Carbon Carbon is a free and open source library to create and share beautiful images of your source code. You can easily use carbon by visiting Either simply start writing your code in the box, or drop a file into...

/ March 1, 2018