laravel-composite-key icon indicating copy to clipboard operation
laravel-composite-key copied to clipboard

PHP trait to use composite keys in your Laravel Eloquent models.

Results 2 laravel-composite-key issues
Sort by recently updated
recently updated
newest added

I am getting following error > App\Traits\HasCompositeKey::setKeysForSaveQueryMissing part of the primary key: destination_id Model: ``` namespace App\Models; use App\Traits\HasCompositeKey; use Illuminate\Database\Eloquent\Model; class Commission extends Model { use HasCompositeKey; protected $table...

If you have a Model that uses both HasCompositeKey and SoftDeletes you get an error while trying to delete a record: "array_key_exists(): The first argument should be either a string...