Category: PHP Frameworks
How to impersonate a user in Laravel?
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
Introduction to Magic Methods in PHP
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
How to create and run multiple cron Jobs in Laravel?
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
PHP script scheduling without cron jobs
PHP script scheduling without cron job Sometimes a website built in php needs to schedule a script on daily or hourly basis – for example, Reminder Emails, Newsletter emails or Database backups to be taken automatically. Normally, these types of
New features in Laravel 5 and higher versions
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
Bulk upload files to AWS S3 bucket
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
Convert HTML to pdf using mpdf plugin in cakePHP
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
Understanding Inflector in Cakephp
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
Laravel Database Migration
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
