Laravel Configuration and Environment Variables
Each laravel application has one “Config” directory which includes all the basic configuration files. You can configure your application by adding custom or built-in configuration variables.
Based on the environment where the application Read more…
Handling zip file download completion and cancellation event (PHP)
Problem: I am working on a project in which user needs to download a zip file from the website. I am creating zip file on the server temporarily which should be Read more…
Run artisan commands on shared hosting server (Laravel)
Laravel is a popular and excellent framework of php. It provides many functionalities out of the box like authentication, events, job queues, artisan commands and many more.
A problem on shared hosting- When Read more…
Stripe Payment Gateway Integration – The requested address was not found on this server
Stripe Payment Issue while capturing payment:
I was implementing Stripe payment in one of my cake3 project. My Stripe Charge Capture Request was Read more…
Steps to impersonate a user in Laravel (Login As another user)
Impersonate functionality allows you to impersonate other users, in order to see the application from their point of perspective, without having to log out and log in again. For instance, as an Super Admin, you Read more…
Here we will go through different Magic Methods in PHP
The PHP functions which starts with the double underscore “__” are called magic methods. These are the methods which are always defined in classes, and can not be used alone i.e. Read more…
What is the purpose of multiple .htaccess files in CakePHP?
In Cakephp, contained .htaccess files are as follows:
CakePHP root directory .htaccess redirects everything to your CakePHP app (means to webroot). We can also Read more…
Here is the process for creating and runnning multiple cron Jobs in Laravel
Cron: It is a scheduler which runs after a specific interval or at specific time. It should be used when developer wants to run a piece of code at a particular Read more…
The list of some new and useful features in Laravel 5 and higher versions
1. Migrate:fresh Command: Refresh command runs all the down methods from database migrations. There may be some cases where down method for some database migrations are not given which Read more…
How to bulk upload files to AWS S3 Bucket (using Laravel)
Amazon Simple Storage Service (Amazon S3) is used to store and retrieve any amount of data, at any time, from anywhere on the web. While storing data to AWS S3 bucket one way is to Read more…
How to use mpdf plugin in cakePHP to convert HTML documents to pdf?
mPDF is a PHP library which is used to generate PDF files from HTML Documents. It converts utf-8 encoded documents and also supports almost all languages including Arabic and Hebrew. It includes Read more…
Understanding the purpose and usage of Inflector in Cakephp
The Inflector class in cakephp is used to modify single/multi word strings into different formats using its build-in methods. We don’t need to use core php methods such as str_replace if you want to Read more…
What is Laravel Database Migration?
Laravel Migration provides a mechanism to propagate database changes from one machine to another (like development to production). It is a kind of version control of the database.
Create an application after installing laravel by using composer (like in the example Read more…
How to Save Logs of Laravel in Amazon S3 Bucket?
Problem – We are working on a laravel project in which logs are saved in the storage folder of laravel and it is using a lot of space. We need to save logs of laravel in Amazon Read more…
Steps for integrating Laravel web service with custom alexa skill:
Step 1: Your web service should be on secure HTTP connection and should have SSL/TLS. Alexa strictly enforces for this to protect the confidentiality and integrity of your data.
Step 2: Open your amazon developer Read more…
Laravel’s powerful validation rules
When we develop any application in Laravel, various validation rules are available which are used to validate data from all incoming HTTP requests.
1. First let’s create a controller named RegistrationController by executing the following command:Read more…
Reflection Api in Php
What is Reflection and why is it useful?
Reflection is generally defined as a program’s ability to examine itself and modify its logic/methods at execution time. In simple terms, reflection is asking an object to tell you about Read more…
Integrate Razorpay in CakePHP application
Step 1: Create Razor Pay Account
First of all you need a test account for Razorpay integration. Click the below link https://dashboard.razorpay.com/#/access/signup and set up a test account there:
Step 2: Get your Read more…
What Is PHP_CodeSniffer?
PHP_CodeSniffer is an essential development tool that helps developers to work in a standardise format so as to make code clean and consistent. It ensures that same coding style is being followed. It allows a set of rules or a standard to be Read more…
WordPress Version 4.9.5
WordPress 4.9.5 is released on 3rd April 2018. This version is released to fix the security issues. There were three major security issues which are solved by the WordPress community in this version:
1. Don’t treat Read more…