Laravel Archives

Auth Session expiring in Laravel – Resolved

Author - Webner
|
0 Comments
|

I have created a web application in Laravel. I am using an authentication plugin to authorize the users while logging-in on my web application. On my local system, everything was working fine.

But when I uploaded my Laravel project from the local server to the test server, I faced Read more…

Laravel Relationships in Eloquent

Author - Webner
|
0 Comments
|

Laravel relationship tables are frequently associated with each other in the database. Laravel relationships in eloquent support different types of relationships and it’s easily working and managing data.

Defining relationships:-

One to One
One to Many
Many to Many
Has Many Through
Polymorphic Relations
Many to Many Read more…

Internationalization / Localization in Laravel

Author - Webner
|
0 Comments
|

Laravel has made it convenient for the developers to create multilingual websites by giving the developer community an easy way to retrieve strings in various languages. These strings are basically stored as constants in the resources/lang directory within our project. Within the lang directory, there are subdirectories Read more…

How to create an event in Laravel

Author - Webner
|
0 Comments
|

Laravel events provide an observable functionality, allowing you to subscribe and listen. Events are stored in the app/Events directory and their listeners are stored in the app/Listener directory. We can generate a Laravel event by running

“php artisan event:generate” command.

Register event and listeners Read more…

What is Laravel Socialite?

Author - Webner
|
0 Comments
|

Most of the sites require User login and registration with Social sites like Facebook, Google+, etc. Laravel provides a simple way to authenticate with OAuth provider Socialite. Laravel currently supports Facebook, Google, Twitter, GitHub, Bitbucket, etc.

Installing and configuring

composer require laravel/socialite

After installation, the Read more…

Accessor and Mutators in Laravel

Author - Webner
|
0 Comments
|

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.

Why do we need this Read more…

Firebase Cloud Messaging With Laravel 6

Author - Webner
|
1 Comment
|

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…

Laravel 5.4 Logs And Errors

Author - Webner
|
0 Comments
|

Introduction

Logfiles:

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…

Firebase Integration With Laravel 6.x (Ubuntu 18.04)

Author - Webner
|
0 Comments
|

Below are the steps to integrate Firebase with Laravel 6.x

Step 1

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

Step 2

Read more…

Compress Videos using FFmpeg Laravel & shell_exec method

Author - Webner
|
0 Comments
|

Introduction

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…

Laravel URL QR Code Generator

Author - Webner
|
0 Comments
|

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…

Upgrade Mongodb Extension Version – Laravel Project

Author - Webner
|
0 Comments
|

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…

How to pass dynamic data to all views in Laravel

Author - Webner
|
0 Comments
|

ISSUE:

Sometimes there is a requirement, in which we need to show some dynamic data in the sidebar of every view.

SOLUTIONS:

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…

Image Compression in Laravel

Author - Webner
|
0 Comments
|

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-
http://image.intervention.io/getting_started/installation

Inside the config/app.php-

In Read more…

Laravel: Prevent the browser back button to access pages after logout

Author - Webner
|
0 Comments
|

Introduction

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…

Creating A New Laravel App With Initial Setup

Author - Harshit Gulati
|
0 Comments
|

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:

Composer

WebServer; I am using Apache ( For Windows and macOS, I Read more…

Laravel Events Introduction With Example

Author - Pawan Gulati
|
0 Comments
|

Laravel Events

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…

Video Compression Using Laravel

Author - Navneet Kaur
|
0 Comments
|

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…

Laravel 5.4 Logs And Errors

Author - Monika Dhiman
|
0 Comments
|

Introduction to Laravel 5.4

Logfiles:
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…

Deploy the laravel project on 1&1 production server

Author - Manoj Thakur
|
0 Comments
|

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…