InimistTech Blogs

Web & Mobile App Tech Weblog

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

Tag: association

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→

Saving multi-level associated data in CakePHP

Arvind KumarCakePHPLeave a Comment on Saving multi-level associated data in CakePHP

In CakePHP 2 we had hasMany, saveMany, saveAssociated model methods or functions to save associated data. These functions works great with straight associations but to make them work for saving multi-level association data you need a trick.

Containable with mixed arguments, the CakePHP Beauty!

Arvind KumarCakePHPLeave a Comment on Containable with mixed arguments, the CakePHP Beauty!

Here’s an example of CakePHP Containable behaviour. Although, it was not a very complex find call but the beauty of the containable is this that you can fetch records using “tricky ways” which normally may not be possible with straight…

Read More→

  • Useful Linux Commands
  • Enlighter Example - CSS
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • 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
  • Understanding the wp_head Hook in WordPress

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