Laravel collection methods

15 Must know Laravel Collection Methods ~ Laravel Collections Tutorial

By on September 6, 2020

Laravel comes with very powerful and convenient wrapper for working with arrays. You must have used collections in Laravel specially while working with Eloquent. Eloquent returns the query results in custom Collection object ~ Eloquent Collection class is inherited from...

How to Schedule tasks with cron jobs using Laravel Scheduler

By on April 12, 2020

In big application, you often need to schedule periodic tasks using Cron jobs. But after some point, it becomes cumbersome to manage those cron jobs. Laravel Scheduler is a command line facility which allows you to easily manage and schedule...

laravel cache clear

Laravel 7: How to Clear Cache using Artisan Command

By on March 20, 2020

In your Laravel Application, clear cache easily with these quick and helpful artisan commands. In this quick tutorial, I will mention few artisan commands you can use to clear various types of cache like config cache, view cache, route cache...

Python: How to Print Without Newline

By on March 13, 2020

Python is one of the most easiest language yet most powerful language to learn. Normally, one would start with print "hello world". No, you cannot start learning without that! Never!! In python, you can print any value using print function....

Laravel Tutorial

Laravel 7 Tutorial for Beginner: Create your First To-Do App

By on March 7, 2020

Learn Laravel in simple and easy steps starting from basic to advanced concepts by creating your first to-do application with basic CRUD functionality

Python: How to check if string contains substring

By on March 6, 2020

In this code tidbit, we will discuss how to check if string contains substring in python. We will be using Python 3 for this tutorial. [Update your python to python 3 if you haven't done so!!] There are various ways...

PHP: How to generate a Unique id in PHP (Alphanumeric String)

By on February 25, 2020

In php, there are many ways to generate unique alphanumeric id. First of all, we will understand why we might need unique alphanumeric id in first place. In applications, normally we use unique integer ids which is generally generated by...

php artisan make:auth not defined

[Error] Laravel 6 php artisan make:auth command not defined! [Solved]

By on February 13, 2020

Laravel 6 is out! And it brought bunch of improvements with it. But also as this is a major version upgrade, there are some breaking changes. One such major change is the removal of php artisan make:auth php artisan make:auth...

laravel validation tutorial

Laravel 7 Validation Tutorial : Laravel To-Do Part 2

By on February 10, 2020

When working with user data, data validation is very important. Normally you would have to write complex data validation from scratch while building web application. But Laravel comes with great validation library thereby making whole validation process very easy and...

python if list contains

Python : How to check if list contains value

By on October 3, 2018

In this quick code reference, I will demonstrate how to check whether value or item exists in python list or not. It is very easy to find if list contains a value with either in or not in operator. Let's take an example...