InimistTech Blogs

Web & Mobile App Tech Weblog

  • Home
  • Laravel
  • React
  • Javascript
  • Linux
  • PHP
  • git
  • WordPress
  • Hindi to Unicode

Tag: laravel

How to Set and Get a new attribute in a Model in Laravel 9+

Arvind KumarMiscelleneousLeave a Comment on How to Set and Get a new attribute in a Model in Laravel 9+

Laravel has unique way to set and get a new or custom attribute in a model. I will explain with help of an example. Accessors (Getters) and Mutators (Setters) in Laravel Mutators Mutators are used to transform model attributes. See…

Read More→

How to check If Database Table Column Exists in Laravel Migration

Arvind KumarLaravelLeave a Comment on How to check If Database Table Column Exists in Laravel Migration

In this short Laravel tutorial you will learn how to do a Laravel migration check to see if a column exists in a database table. By doing this migration check you can avoid a fatal error such as the following…

Read More→

2 methods to check if a given Date is Today’s Date in Laravel

Arvind KumarLaravelLeave a Comment on 2 methods to check if a given Date is Today’s Date in Laravel

In this tutorial I will show you two days to check if a given date is today’s date in Laravel. These 2 methods are isToday method and isSameDay method of Carbon library class in Laravel. First Method: Using IsToday() In…

Read More→

Example of Eloquent Model Query with conditional Where condition in Laravel

Arvind KumarLaravelLeave a Comment on Example of Eloquent Model Query with conditional Where condition in Laravel

In this example I will show you how to build an Eloquent query to filter results by certain field or fields of a table. In this example we will use simple Laravel Eloquent Model example to search a table and…

Read More→

How to validate exact words in an input value in Laravel?

Arvind KumarLaravelLeave a Comment on How to validate exact words in an input value in Laravel?

Validate exact words: This post will show you how to validate a string by exact matching with a string. For example you have to validate a field for whether it has yes or no in an input. So the input…

Read More→

How to validate data in Laravel, A Form Request Validation example for Laravel 7/8/9/10

Arvind KumarLaravelLeave a Comment on How to validate data in Laravel, A Form Request Validation example for Laravel 7/8/9/10

In this simple tutorial I will show you an example of how to perform form request validation using Laravel’s Validator Facade. What is FormRequest? FormRequest is Laravel’s default form request validation mechanism. FormRequest can be extedned to define your custom…

Read More→

Laravel Carbon addMinutes() | Laravel Carbon Add Or Subtract Minutes and Hours Examples

Arvind KumarLaravelLeave a Comment on Laravel Carbon addMinutes() | Laravel Carbon Add Or Subtract Minutes and Hours Examples

Laravel has the Carbon dependency attached to it. So, in order to perform basic to complex date and time calculations you can use this dependency. In this tutorial we will see some examples of addMinute and addMinutes methods of Carbon class.…

Read More→

How to build a basic Frontend Application using Laravel and Livewire

Arvind KumarMiscelleneousLeave a Comment on How to build a basic Frontend Application using Laravel and Livewire

Laravel framework is primarily used to create backends and APIs. Traditionally, it can leverage PHP to build frontends using blade template system. However, in order to build more interactive web pages developer may prefer to use Javascript frameworks such as…

Read More→

How to Remove Appends Attributes from Laravel Eloquent Model

Arvind KumarLaravelLeave a Comment on How to Remove Appends Attributes from Laravel Eloquent Model

In Laravel the set{Attribute}Attribute accessor methods are used to set new attributes in a model. For example, we do use $appends property to create our popular “full_name” attribute to combine “first_name” and “last_name” attributes. Following the syntax to define $appends…

Read More→

How to Check Laravel Version using CLI and File System

Arvind KumarMiscelleneousLeave a Comment on How to Check Laravel Version using CLI and File System

Laravel is one of the most popular and used frameworks written in PHP programming language. As a Laravel developer you sometimes need to check Laravel version. Especially, if you start working on an existing project coded in Laravel Framework. So…

Read More→

Posts navigation

1 2 3 Next
  • Useful Linux Commands
  • Enlighter Example - CSS
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • How to Create a Custom Gutenberg Block in WP (Step-by-Step)
  • How to Create User Roles and Permissions in Laravel 8
  • Creating a Wp Angular Theme for WordPress with Gutenberg
  • Understanding Cookies in PHP
  • How to Create a PHP Session

About Arvind

Arvind Thakur is a Full Stack Web Developer. He founded and runs a Software Development company by the name Inimist Technologies in Chandigarh, India. >> know more
Copyright © All rights reserved.
Blog Kit by WP Charms
Facebook
fb-share-icon
LinkedIn
Share
WhatsApp
Follow by Email
Twitter
Post on X
Reddit
Pinterest
Instagram
RSS
Telegram