Laravel CRUD Generator Feature

Laravel Eloquent Relationship Builder is main feature of PLMB. With Relationship Builder module you can make relationship with other laravel CRUD packages that you created. This relationship can be Many-To-Many or Many-To-One. Of course you can remove your relationships and create again. When you create Many-To-Many Eloquent relationship with PLMB, that added multi searchable select HTML control to your view and also for Many-To-One relationship, that added single select HTML control to your view. You can merge multi laravel CRUD packages with together. It's very good feature for big package that include multi CRUD forms.


BUY NOW


Display dynamic relationship diagram to get confirmation

  • Dynamic Diagram
    The PLMB, before applying relationship configuration, display a dynamic relation diagram to get confirmation. This prevents you from misconfiguration of Laravel Eloquent Relationship.

  • What happens when you configure your relationship?
    Many-To-Many Relationship
    Many-To-One Relationship
Laravel CRUD Generator Feature

Laravel CRUD Generator Feature

PLMB Laravel Eloquent Relationship Builder allow you to make Many-To-Many relation. When you make a Many-To-Many relationship, PLMB generate below code in model class file and also generate multi select (select2) tag in your html form. For example Product and Tag has Many-To-Many relation:


class Product extends Model
{
...
	 public function Tag()
	 {
		   return $this->belongsToMany("ProductModelTag");
	 }
}
class Tag extends Model
{
   ....
   public function Product()
   { 
	  return $this->hasMany("ProductModelProduct");
   }
}
											

Laravel CRUD Generator Feature

When you make a Many-To-One relationship, PLMB generate below code in model class file and generate single select tag in your html form. For example Product and Category has Many-To-One relation:


class Product extends Model
{
  ...

  public function Category()
  {
	return $this->belongsTo("ProductModelCategory");
  }
}
class Tag extends Model
{
   ....
   public function Product()
   { 
	  return $this->hasMany("ProductModelProduct");
   }
}