The command can be used to generate new request validation request classes. You can input the name of the class to generate the class. The name will be used as the name of the class and the file. Follow the example below to generate a Request class in Laravel. php artisan make:request ProductPostRequest A new…Continue Reading
Bind vs Singleton in Laravel. Which one to use, and when?
In today’s tutorial, we are discussing bind() and singleton() methods in Laravel. In general, you might have encountered this a lot while you programming in Laravel based apps. We use in the event of reusable classes or objects ( the object is created each time when it is called). So each instance of the class…Continue Reading
Attribute Casting with Laravel
Laravel is well known MVC framework written in PHP programming language. Over the years, it became the next tool in your belt for a plethora of programmers. When we work with MVC, we have to deal with models and attributes as this is the layer that makes contact with our database. Oftentimes, we need to…Continue Reading
How to create and download a Zip file with PHP
Today we discuss how to create a zip file from a folder of images and download it from the browser. As result, we will have all the files in a folder archived to a zip file and downloaded to our computer. Important to realize we use built-in PHP class to achieve this. Class which allows…Continue Reading
RecordCast Review: A simple and free screen recorder for you to try
Being the best video screen capture software for PC, capture anything worth sharing on your screen with the all-in-one online screen recorder and video editor RecordCast. You can record videos, save them and come back later for editing. It is free to use. Moreover, Recordcast is video recording software that allows you to capture your computer screen…Continue Reading
DesignEvo Review: Create Fancy Logos Online
Paying a designer to create custom logos is not cheap. It can also be very expensive to pay for design software like PhotoShop or Sketch, and let alone learn how to use it. Moreover, if you’re more of a UI designer who struggles with logos, this can be a challenge. However, if you want to…Continue Reading
DesignCap Review: Create Beautiful Designs Online for Free
Are youLooking for the best free poster and flyer maker online?. If your answer is yes, continue reading this DesignCap review and learn how to create an amazing free poster and flyer using DesignCap. Have you ever tried to make a poster for your social media or personal channel?. If so, how did you manage…Continue Reading
How To Get HTTP Hostname In Laravel ?
In today’s tutorial, we discuss how to get the HTTP hostname in the Laravel project. The first thing to remember, we have helper that can be used anywhere in the Laravel projects such as blade templates, controllers, models, etc. So this function is equipped with two methods as shown below to get the HTTP hostname…Continue Reading
In this tutorial, I will show you how to copy text to the clipboard on a button click using jQuery from a textbox. It’s very helpful for the users to click a button to copy everything in a textbox, instead of selecting and copying using the Mouse. So today’s tutorial, we will have a textbox…Continue Reading
How to Embed Someone’s Twitter Video in to a Webpage?
Twitter is one of the biggest social media that allows users to express their thoughts to the public. Oftentimes people use videos to engage with their friends, audience, customers, etc. Moreover, when sharing content everybody thinks about a retweet(terminology Twitter uses for sharing content inside the platform). What if you want to share the content…Continue Reading
The Complete Guide for FlexClip Video Maker
In today’s world, video making is a profession for many, so you need professional tools to create your stunning videos. In this article, we introduce FlexClip, a simple yet powerful video maker that creates marketing videos and family stories in minutes. Everybody watches YouTube videos, but did you ever thought about how these amazing videos…Continue Reading
Bootstrap 5 Enabled Starter template
Automating FTP Deployments with GitHub Actions
In today’s article, we are talking about how to use GitHub Actions as a replacement for your traditional FTP clients. Yes, we can use GitHub Actions as a normal FTP client such as Filezilla, CoreFTP, etc without worrying about navigating through folders. Just imagine that you have a project in Codeigniter or any framework/CMS of…Continue Reading
The 8 best URL shorteners of 2021
Since the Google URL shortener was shut down, the netizens were on the search to find the next best URL shortener. Of course, there is a single answer for this, and it depends. It really matters what do you want from them, and how it fits into your ecosystem. In today’s article, we are introducing…Continue Reading
How to call static function from Helper in Laravel blade file?
We have already discussed creating custom helper functions (Global Function) in Laravel in a previous article. So today’s article we discuss a different approach to achieve the same feature, and this function can be called from the blade template as well. Step 1. Add this code in your composer.json file located in the root directory…Continue Reading
Deleting an element from an array in PHP
There are two different ways to delete an element from arrays in PHP. Method #1 unset() Keep a note on this that, index won’t change after you use to delete an element from an array. But you can use just after to re-index the keys. $array = [ 0 => “Pen”, 1 => “Paper”, 3…Continue Reading
Laravel WhereHas() Eloquent Example
WhereHas() is a Laravel eloquent method, which helps to define additional query constraints on your queries, such as filtering your books with some author name. For example, return all the books if it matches an author named Charles Dickens. But whereHas() often confused with some other terms in Laravel, has() and with(), which is very…Continue Reading
How to Rollback migration in Laravel ?
When you check the migration table in Laravel, you can see a batch number with every record. So, when you run the rollback command, it rolls back each migration that was part of the last migration. php artisan migrate:rollback The above command will roll back the last batch of migrations which may include multiple migration…Continue Reading
What are the basic programming concepts and the Fundamentals used in Coding?
A long time ago, coding was one of the hobbies for a few fiddling with computers. But now it has become a mandatory qualification in career skills. Job recruiters are also willing to pay a lot for people who are skilled in programming. Anyone can become a professional if they know the core concepts and…Continue Reading
How to Create PDF File From HTML Form Using Fpdf?
In today’s tutorial, we illustrate how to convert HTML to pdf with PHP. As you know already, PDF stands for “portable document format”, a format that is used when we need to save a file that cannot modify but can be printed easily. In today’s article, we will show you have to post a form…Continue Reading
Laravel str is() Function With Example
In today’s tutorial, we will show you how to use string is() function Laravel. Basically, this function determines if a given string matches a given pattern. Asterisks can be used to indicate wildcards. Note: we can use this function as Str::is() or is(), both are correct as it’s a helper function, and it can be…Continue Reading
How to Move all zeroes to end of array in PHP with example
In today’s post, we will explain how to move all zeros to the end of the array in PHP. So in this example, we have created a function move_zero_to_end with a parameter $arr. The first part of the function iterates through the array elements and pushes non-zero elements to the array. So the zeros are…Continue Reading
How to use Faker with Laravel ?
As the name suggests Faker is a PHP library that generates fake data for you. Why do we need fake data? Good question, we need fake data to simulate a development environment, which looks very close to real data. Sometimes developers need to have a bulk amount of dummy data, to test a feature like…Continue Reading
How to Add Foreign Key in Laravel Migration?
Today’s tutorial shows how to add a foreign key to a MySql table field in Laravel migration. I am sure you are in the right place to start with the migration and foreign key constraints in Laravel. As we discussed earlier, the foremost purpose of the foreign key is to provide referential integrity between parent…Continue Reading
7 Best Pagination Plugins For WordPress
The sites have a nice navigation structure that will attract more visitors, and it will be a pleasure for the visitors to glide through the website. So with a nicely done pagination, your visitors are more likely to engage with your content, click through to new pages. Is pagination is must-have for a website?. The…Continue Reading
How To Add Read More Link to Excerpts in Genesis Framework?
Genesis Pro framework builds better sites faster with powerful site-building tools for WordPress. So today’s article we are showing how to add read more links in post excerpts in the WordPress website using the Genesis theme. Use the below snippets in the functions.php file of your Genesis child theme. add_filter( ‘the_content_more_link’, ‘tp_get_read_more_link’ ); function tp_get_read_more_link()…Continue Reading
5+ Dating Application Script in PHP
1) QuickDate – The Ultimate PHP Dating Platform QuickDate is a social dating script written in PHP, and it gives you a complete configurable dating application without doing much coding. It’s very fast, secure, and regularly updated. Features 1) Admin Dashboard 2) High Performance 3) Filters to search 4) Premium feautre option to unlock more…Continue Reading
Top 25 Algorithms Every Programmer Should Know
It’s advisable to learn how the data structures and algorithm works in computer science, even before you start type the first line of code. A better understanding of DSA and algorithms will make you a better programmer and this will help you to choose the right data structure every time you write code. Binary Search…Continue Reading
How To Develop A Mobile Chat Application With PhoneGap?
Mobile chat has become an integral part of the digitized world. Talking of chats we are not only talking about social media, dating, or similar kinds of apps but more. Mobile chat has become an important part of online business as well. From the chatbots on the website to the chat support on various apps, the chatting arena has…Continue Reading
Check for the application environment in Laravel views or controller
Often times you will come across to check what is the current environment in your application. I am talking about if it’s in production or development or any other state that you defined. For example, you may need to show Google ads on your website when it’s in production mode. Indeed, you need a directive…Continue Reading