Blogs of Laravel

We are a web development and outsourcing agency based in Kochi, India.

Slack API Integration with PHP

Slack API Integration with PHP

Slack is the most popular messaging platform for official purposes. In this blog I will explain how we can send messages to the slack public channel or private account through their api’s. First, we need an api user. You could either use an existing slack account or create a new one. While sending messages through the api, the sender name will be this user's username. So in most cases, creating a new user would be better. You can login or sign up here (https://slack.com/) After logging into your account we need to create a Slack App. You can create new App from here (https://api.slack.com/apps)

Adding your application as a sub-domain to Vapor

Adding your application as a sub-domain to Vapor

Recently I was trying to deploy a Laravel Application using Vapor. I wanted to deploy it to a subdomain. There were many projects deployed on several subdomains of our main domain. Since I wanted to deploy using Vapor which is basically serverless, there were basically no IP Addresses or URLs to point the domain to. I went through the Vapor Documentation about the domain section, but it said nothing about how to point the subdomain. So I contacted the Laravel Vapor support about my problem. They responded that I needed to add the main Domain to Vapor and the subdomain will automatically be added and no problem will happen to my existing subdomains after doing this. After their response, I added the main domain from the Vapor UI. PS: Thanks for the great support from

Deploying a Web App with Laravel Vapor: A Comprehensive Guide

Deploying a Web App with Laravel Vapor: A Comprehensive Guide

Laravel Vapor is an auto-scaling, serverless deployment platform for Laravel, powered by AWS Lambda. It is a cost-effective system, you only need to pay for the usage of your application. Vapor makes it easy to use AWS Lambda-powered serverless application in such a way that you don’t need to do any setup for AWS Lambda. Here's a Tutorial on how to deploy a Laravel application with Vapor. The following topics will be covered in this Blog. Setting up Vapor Locally Link AWS Account Creating Projects Deployments

How to fix the Insecure Direct Object Reference Vulnerability in Laravel

Insecure Direct Object References occur when an application provides direct access to objects based on user-supplied input. As a result of this vulnerability, attackers can bypass authorization and access resources in the system directly, for example, database records or files. Consider, User A uploaded a private photo at http://www.mysite/private/photo/5 and User B uploaded a photo at http://www.mysite/private/photo/6  (you should never use incremental ID's in the URL in the first place, use some random keys. This is just an example to show the concept.) Now User B shouldn't be allowed to view the photo of User A at http://www.mysite/private/photo/5, but many develope...

2HATS LOGIC SOLUTIONS HAS BEEN RECOGNIZED AS TOP DEVELOPMENT AGENCY IN INDIA BY CLUTCH!

2HATS LOGIC SOLUTIONS HAS BEEN RECOGNIZED AS TOP DEVELOPMENT AGENCY IN INDIA BY CLUTCH!

We are extremely happy and honored to be recognized by Clutch as the top development agency in India from 225 companies shortlisted for this category. Clutch is considered to be a reliable reviewing source when we compare with similar platforms, resulting in useful insights for a prospective buyer and this factor made the recognition more valuable.  Clutch in precise is a leading rating, and reviews website, functioning based on the USA. They monitor companies that provide a wide range of services. As Clutch encourages reviews from the company’s clients directly, it is easy for them to determine how a company ranks against its competitors. Our clients also happily reviewed us there, giving honest feedback that hig...

How to upload, download, remove files in AWS server using SFTP from Laravel

Amazon Web Services (AWS) provides a reliable and scalable platform for hosting web applications and storing data. One of the ways to transfer files to and from an AWS server is through the Secure File Transfer Protocol (SFTP). In this guide, we'll show you how to use Laravel to upload, download, and remove files in an AWS server using SFTP. To get started, you'll need to set up an SFTP server on your AWS instance and install the necessary packages in your Laravel application. Once you've configured your SFTP connection, you can use Laravel's built-in Filesystem API to interact with your AWS server. Below are the steps needed to Upload the file to the AWS serve

Integrating Google Calendar API in Laravel

Integrating Google Calendar API in Laravel

Google Calendar is being used by millions of people to track their events. The Google Calendar API is used to integrate your application with Google Calendar to find and view calendar events. Complete the steps described in the rest of this page to Integrate Google Calendar API in a Laravel application. Generate API connection Go to Google Cloud Create a project ...

How to integrate SSO(Single Sign-on) in Laravel ?

How to integrate SSO(Single Sign-on) in Laravel ?

For every authorized application, a set of login credentials (username and password) are needed. It’s hard to keep different credentials for different applications. For faster access to multiple applications, users can use a single set of credentials. How is it possible? It can be achieved using Single sign-on (SSO). Single sign-on is a part of user authentication. Using SSO a user can easily be logged into multiple applications with a single set of credentials. Let’s focus on how we can implement SSO in Laravel. It’s quite easy to implement SSO in Laravel.

Laravel – Custom authentication and what happens under the hood

Laravel – Custom authentication and what happens under the hood

In this article, we will take a detailed look at how the default authentication works inside Laravel core. But first, we will learn how to create a custom authentication. Laravel ships in with a great default user authentication. It even creates the views and routes for you if you run // Create the default views, routes and controller for authentication php artisan make:auth All is well as long as we are good with the default users table and its authentication. But what if we want another authentication method. For example, you want to user a separate table called admin for authenticating admin users while keeping the normal users table for front end authentication....

Laravel Facades Part 1 – What they are and how they work

Facades allow us to call classes defined under the service container in an elegant and expressive way - as "static" interfaces. If you are a Laravel developer, chances are that you are using Facades all the time. You may not just know that yet. Laravel ships in with many facades like Hash, Input, Mail etc. Let’s take the example of Hash facade and try to figure out how it works. You may be familiar with something like this, Hash::make(‘password’); If you search for a class named Hash, you won’t find it. Go to app/config.php and scroll down to the bottom where the class Aliases are defined. There you will see this,

Page 4 of 41234
2hats Logic HelpBot