Open in app

Sign In

Write

Sign In

Saurabh Mahajan
Saurabh Mahajan

10 Followers

Home

About

May 14, 2021

Livewire Offline Component

Livewire has a feature called Offline State. This can be used to notify the User that they have lost their Internet Connection and are offline. You just need to add the wrap:offline attribute to a div like below: <div wire:offline> You are now offline. </div> And this div will only…

2 min read

Livewire Offline Component
Livewire Offline Component

2 min read


Apr 14, 2021

Laravel Component to display Tailwind Tables

In our recent Projects we have been using Breeze & Jetstream, both of which uses TailwindCss. It is a common scenario to display the Data in Tabular Form on multiple Screen. Using TailwindCss, there were a lot of duplicate CSS Classes and bloated HTML. …

Laravel

5 min read

Laravel Component to display Tailwind Tables
Laravel Component to display Tailwind Tables
Laravel

5 min read


Mar 31, 2021

Laravel Model Factories

Laravel Model Factories provide a convenient way to populate your database with Dummy Data during development as well as provide a way to insert Records while running Tests. You can create a Model Factory using artisan command make:factory. You can also pass the model using -m Flag to specify the…

Laravel

4 min read

Laravel

4 min read


Mar 29, 2021

Livewire Component for “Load More” Records

In this Tutorial, we will see how we can create a Livewire Component which will Load More Records from the Database when the User Scrolls to the bottom of the list. And we will do it properly without reloading all the Records when the Component re-renders. Basically we need to…

Laravel

4 min read

Laravel

4 min read


Jan 22, 2021

Anonymous Blade Components

Blade Components have been around Laravel since long, however they gain immense popularity with the release of Jetstream. Jetstream uses Blade Components to keep all the Views consistent and helps to avoid duplicating any Html and thereby keeping the things DRY. Besides Anonymous Components there are Class Based Components as…

Laravel

4 min read

Laravel

4 min read


Dec 20, 2020

Custom Blade Directives in Laravel

Blade Directives provides a convenient and clean way to display data in View. There are various Blade Directives available like @if, @for, @foreach, while which have similar syntax as their PHP Counterparts. Also, we have slightly more robust Directives like @auth, @guest etc. It is entirely possible to create your…

Laravel

3 min read

Laravel

3 min read


Dec 16, 2020

Digging into Laravel SoftDeletes

It is often said that Digging into Laravel Codebase is one of the best method to understand how the Laravel works under the hood. It also helps you to pick up some of the best practices being used in the Framework. …

Laravel

4 min read

Digging into Laravel SoftDeletes
Digging into Laravel SoftDeletes
Laravel

4 min read


Sep 24, 2020

Laravel Stub Customization

If you have been developing with Laravel, you would have definitely used Artisan Console make commands. They are used to create a variety of classes like Controller, Model, Request, Jobs, Migrations etc. …

Laravel

2 min read

Laravel Stub Customization
Laravel Stub Customization
Laravel

2 min read


Jul 31, 2020

Tips & Tricks about Laravel Migration

How to Create Migrations in Laravel You can create a migration file using the Laravel make migration command. You need to specify a meaningful filename like below: php artisan make:migration create_companies_table If you are creating migration to add a new table, you should pass --create parameter along with table name. …

Laravel

3 min read

Tips & Tricks about Laravel Migration
Tips & Tricks about Laravel Migration
Laravel

3 min read


Jul 23, 2020

Demystifying Route Model Binding in Laravel

When I first started working with Laravel, one of the very first piece of code that I came across was similar to following: //routes/web.php Route::get('/post/{post}', 'PostsController@show'); //PostsController.php public function show(Post $post) { return view('posts.show', [ 'post' => $post ]); } So when I went to URL /post/1, the Post with…

Laravel

5 min read

Demistifying Route Model Binding in Laravel
Demistifying Route Model Binding in Laravel
Laravel

5 min read

Saurabh Mahajan

Saurabh Mahajan

10 Followers

Freelancer Developer.

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech