Accessor and Mutators are allowed to alter the data before saving and fetching from the database. An accessor is used to change the format while fetching the data from the database and mutators set the format attributes before retrieving the data from the database.
Introduction to Firebase Cloud
Earlier known as Google Cloud Messaging and now called Firebase Cloud Messaging (FCM) is a messaging solution for cross-platform provided by Google itself. This service lets you reliably deliver messages or notifications at no cost. One can use FCM for sending push notification Read more…
Logs are files that keep a registry or records of events, processes, messages that occur in the operating system or any software that runs.
Laravel provides the robust logging services that allow the user to log messages to file.
Laravel uses the Monolog library Read more…
Below are the steps to integrate Firebase with Laravel 6.x
To integrate Firebase with Laravel we first need a Laravel project. Create a new Laravel project using the given composer command.
composer create-project –prefer-dist laravel/laravel firebase
First of all, install FFmpeg in your composer. Perform the steps below to install it on Ubuntu:
composer require pbmedia/laravel-FFmpeg
Start by updating the packages list:
$ sudo apt update
– Next, install FFmpeg by typing the following command:
$ sudo apt install FFmpeg
– To check FFmpeg is Read more…
Why the QR Code?
A QR code can make you download apps, redirect to a particular URL, access wireless networks like WiFi and much more. They can also lead one to perform quick actions without even putting any effort. Many social media platforms are using the same as Read more…
Issue while upgrading Mongodb extension version:
I have upgraded laravel version from 5.7 to laravel version 6.5. Now, I’m getting mongodb extension version error while updating composer. Error given below:
ERROR: jenssegers/mongodb v3.6.0 requires mongodb/mongodb ^1.4 -> satisfiable by mongodb Read more…
Sometimes there is a requirement, in which we need to show some dynamic data in the sidebar of every view.
The above scenario can be achieved using various techniques in Laravel, which are listed below –
We can pass the sample data array on every Read more…
Steps to follow:
Install the Intervention image package first in your project
composer require intervention/image
If you want to check official documentation of intervention image you can check it from here-
Inside the config/app.php-
In Read more…
When we create a web project in laravel, even after logging out of the project, clicking on the browser back button usually takes us back to the previous page we opened when we were logged in. This is a very big security issue that can arise in Read more…
How to create a new laravel app with initial setup and get everything up and running?
To create your first Laravel app, you will require some prerequisites and here is what you will need to have installed:
WebServer; I am using Apache ( For Windows and macOS, I Read more…
Events are one of the many powerful features of the Laravel. The event basically means the thing that happens or takes place, especially the one that is important. So, in Laravel’s case, events are triggered when some condition is met like most websites have authentication Read more…
Introduction to Video Compression
Video Compression is a term used to define a method to reduce the data used to encode digital video content. This reduction in data further translates to various benefits such as smaller storage requirements and lower transmission bandwidth requirements, for a clip of the Read more…
Introduction to Laravel 5.4
A log file is a file that keeps a registry or records of events, processes, messages that occur in the operating system or any software runs.
-Laravel provides the robust logging services that allow the user to log Read more…
How to deploy the laravel project on Shared hosting server
On shared Environment:
Step 1: Push the code to Production Server.
I’m assuming that your project is running perfectly on your localhost and now you are ready to push it to Read more…
how to download file from s3 disk in Laravel
What is AWS S3?
Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. S3 helps you securely upload and download your data with Read more…
How to Detect Text From Uploaded Image and Base64 string in laravel
Laravel has various packages available to achieve this. I have tried “yk/laravel-ocr” and “alimranahmed/laraocr” but these are not producing accurate results. After that, I used the “AWS sdk” and it proved Read more…
Laravel Cron to keep executing manually even for a long time
The cron jobs we create in Laravel can be very time consuming if they have much to do. They may take a few minutes to execute completely. While testing the cron by executing it manually Read more…
Method of Face detection using Laravel
Laravel is a PHP framework for Web Development. It provides many features to make things easy for Web Development. It also takes care of the security of the application. If you have an intermediate level knowledge of PHPRead more…