Blog

We write about technical solutions for the roadblocks we face in everyday work and more on trends in technology. This will help some of you to tackle issues quickly and get some useful tips.

Converting Doc to PDF without breaking style.

Converting a word file to PDF with proper formatting is not easy. I tried many packages in Laravel but they all gave me broken PDFs with messed up styles. I found an API called CloudConvert(https://cloudconvert.com/) that supports the conversion between more than 200 different audio, video, document, ebook, archive, image, spreadsheet and presentation formats. This helped me to convert the doc file to PDF format very easily without breaking any style. It's very easy to install and use in Laravel via composer.js "require": {"robbiep/cloudconvert-laravel": "2.*"} Run the composer install to download the required files. You need to publish the config PHP artisan vendor:publish Just enter your API key in config/cloudconvert.php Note: ...

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 the service container helps you to architect your Laravel projects better

Understanding how the service container works is critical in architecting scalable decoupled code using Laravel. In this article, we will explore how the service container helps us to achieve this using some practical examples. Suppose that you have a reports page where you export users in the system in as an XML. You have a folder App\Services\UserExport where you have a UserExportInterface. namespace App\Services\UserExport; interface UserExportInterface{ public function export(); } This is how the XmlUserExport class looks like: namespace App\Services\UserExport; class XmlUserExport implements UserExportInterface { public function export() { //do the xml user export ...

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

Bootstrap-like Grid System for Shopware 5 using PocketGrid

Bootstrap-like Grid System for Shopware 5 using PocketGrid

Most developers are well used to Bootstrap and it’s grid system to develop responsive websites quite fast and easy. But when they come to Shopware they are challenged with PocketGrid in the default theme, which is very light compared to Bootstrap but doesn’t really have the grid-like the workflow of Bootstrap. We believe the grid system is quite convenient so we developed something simple which helps Shopware theme developers to code easily in a style similar to Bootstrap. We still keep the lightweight PocketGrid and do not use Bootstrap libraries for they are not as light as PocketGrid. Let’s see how this is done so you can adopt this style in your agency for Shopware theme development. How to create rows an...

How to save and update free text fields from frontend in shopware 5.5.4

How to save and update free text fields from frontend in shopware 5.5.4

Introduction The free text field management is the default feature of shopware. But we need some custom coding in order to save and update free text fields from the front end. In this blog, I am going to explain how to add a free text field from the back end and how it will be saved from the front end in shopware 5.5.4. How to add free text field from the backend You can find the free text field management module from Configuration →  Free text field management in shopware back end.

Getting started with react-native-navigation (V2) for beginner

Getting started with react-native-navigation (V2) for beginner

Once you become familiar with react-native components and start designing pretty screens, the next question is how to navigate between screens. The solution comes in the form of some navigation libraries like react-navigation, react-native-navigation or so on. I personally prefer react-native-navigation as it is more native than just a react component thus have better performance. In this tutorial, I will walk you through the installation steps to build a basic navigation structure. Step 1: create an app with the desired name. You can use the below command to for that:

How to setup Firebase Push Notifications in react native applications?

How to setup Firebase Push Notifications in react native applications?

A lot of new apps are showing up in the market day by day. To get our app noticed in this wide range of apps is very difficult these days. Even if it is done, we need to make sure our users are engaged in the app by timely notifications and they must be updated with new changes in the app. Push notifications play a major role in this area. Mobile platform provides its own service to set it up on our apps. Firebase Messaging Service (FCM) is a cross-platform messaging service from Google. This blog will show how we can set up this service in our react-native app easily. React native firebase makes using Firebase with react native simple. It provides all firebase functionalities with simple methods. Push notifications are one of it. Different vers...

Page 15 of 19« First...10...1314151617...Last »
2hats Logic HelpBot