Laravel

Retrieve count of nested relationship data in Laravel

p>Recently in one of our client's project, we want to load the count of relation in laravel. But we do not want to retrieve original records. For example, We have the following Models, Category Products Orders For that, we have categories, products, orders, order_items table. Where in the ...

Laravel

Laravel Packages we use everyday at InfyOm

Lots of people ask me frequently, "Which are the laravel packages that you use in almost all projects?" when we meet in Meetup or any other events regardless of its online or physical events. Let me describe today some of the packages that we almost use in all of the projects. We are wor...

Laravel

Using Common StatusTrait in Laravel in multiple models

Recently, we were working in a laravel app where we have a status column in multiple models. We have multiple processes going on for which we have different jobs. Initially job status will be "Pending", then each job will take one record, change the status to "Running" and proce...

Laravel

Efficient and Fast Data Import with Laravel Jobs & Queues

p>Recently, we have started working on one CRM System for client, where we offer a user to create an account and then can upload his excel file of Contracts and we will create contracts in the database, and then these contracts will be emailed to both the parties of the contract. For this, the func...

Laravel

How to remove public path from URL in Laravel Application

While hosting on the Laravel project on cPanel, the traditional problem that lots of developers get is, /public path is appended to the URL. Because in most cases, we put a project directly into the public_html folder, so public_html is our root for the website and that's where our laravel applicati...

Laravel

toBase function in Laravel Eloquent

Sometimes we need to load a large amount of data into memory. Like all the models we have in the database. For e.g. PDF Printing, Perform some global updates, etc. So the general practices we use in Laravel is to write the following code, $users = User::all(); Just imagine I have 10,000 users in...

Laravel

Make long path shorter in asset function in laravel

Recently, I've started working on one project where we follow modules pattern and for the same, we have different assets folder for the different modules and the folder named common for assets which are common across all the modules. So our public folder looks like the following, The p...

Spirituality in Business

4 Varna in Gita vs 4 Departments in Business

Image Source Shreemad Bhagavad Gita has a lot to speak about business management. In the last Post of Karma-Yoga, we have seen how our actions should be for the benefits of the others. Today, let's see Chapter 4. In Chapter 4, Karma-Brahm-Arpan-Yoga (Jñāna Karm Sanyās Yog), verse 13th and 14t...

Spirituality in Business

12 Business Learnings of 2019

2019 was a great year for us in terms of business as well as in my personal life. We have some major breakdowns which taught us lots of good lessons while we resolved it. 1. Do not get your company to rely on one major client The major mistake we made was our 80% staff was working for one client f...

Laravel

Use of Required Without Validation Rule in Laravel

Last month, I got consulting of one Laravel project where we have to perform some complex validations. The scenario was while creating an order, either customer can select the existing address from the dropdown or he may have an option to create a new address with all address fields. And w...

Laravel

DateTimeLocal with LaravelCollective Model Binding

Last week, we were working on one project where we were using LaravelCollective for generating our form. LaravelCollective is a really awesome package and reduces lots of efforts, specifically for automatically binding old inputs to our forms. Problem With LaravelColletive when we pass null as a s...

Laravel

SMS Driver with Laravel Facades and Service Providers

In the previous article, we learned How to create Laravel Facade and how it can help to simplify our code and make it more accessible and beautiful. In this article, we will see how we can control our SMS Provider/Gateway via configuration without even touching the code and change it from the envir...

Laravel

Laravel UPCItemDB Package

We are working on an inventory system for one of our client for a long time and recently, what we needed was to retrieve inventory item information by UPC code or ISBN or EAN. so the end customer does not need to fill a full form with all the details. We implemented a feature where customers can ...

Laravel

How to Create Laravel Facade and Simplify Code

Last month, I started training in one company where I am giving Laravel Training to around 15-20 PHP Developers, where we discussed the core Laravel concepts to them including Service Providers, Facades, Eloquent, and many more. There I explained to them the use and beauty of Laravel Facades and ho...

Laravel

Laravel App - Code Optimizations Tips

Last month we started working on one of our internal project called InfyTracker, which we were planning to use as a simple time tracker and very little of project management or task reporting. We have also published it as an open source project to our Github account so other people fro...

Laravel

How to use Datatables in InfyOm Laravel Generator

InfyOm Laravel Generator comes with two possible choices for a table in the index view. Native table with blade Datatables Datatables comes with a huge set of features if you really need it and InfyOm Generator is capable to generate your CRUD table with Datatables. It uses yajra/laravel...

Laravel

Introducing Laravel 5.8 support to InfyOm Laravel Generator

Introducing Laravel 5.8 support to InfyOm Laravel Generator with more cleaner Repository Pattern Laravel 5.8 just release this week with a bunch of new improvements. You can read the full post here about new updates. so in a very small fraction of time, we also worked on to add support of Lar...

24th Sep 2016 InfyOm Laravel Generator Release

Another minor update release for InfyOm Laravel Generator with some enhancement for datatables and few bug fixes. This release contains datatable duplication script & CSS fixes with partials files support for datatables js and CSS files. Also, it contains few bugs fixes about save JSON mod...

AdminLTE Templates in mainstream development for Laravel Generator

Today we are going to take another major decision on our templates development for Laravel Generator. It's around more than 7 months that we launched a new laravel generator with the ability to select any CSS framework based on developers choice. Even anyone can develop his own templates and ...

Introducing InfyOm Labs Blog

Greetings friends. Finally, InfyOm Labs blog is here. This is my first blog, so, of course, this is my first post. so I spent quite a huge time by reading how to start a blog. Let me take you in the past and give you some brief idea, how all these things were started. The Past back in 2015, I ...