byteincoffee/doctrine-extensions
Laravel package integrating Doctrine Extensions with Eloquent models, adding behaviors like timestampable, sluggable, soft delete, and more. Provides easy configuration, listeners/subscribers, and seamless use of Doctrine-style extensions in Laravel apps.
Entity:
<?php
namespace Acme\DemoBundle\Entity
class User
{
/**
* [@var](https://github.com/var) integer
*/
public $id;
/**
* [@var](https://github.com/var) string
*/
public $name;
/**
* [@var](https://github.com/var) string
*/
protected $fileKey;
/**
* [@var](https://github.com/var) mixed
*/
protected $file;
}
Yaml:
Acme\DemoBundle\Entity\User:
type: entity
id:
id:
type: integer
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
fileKey:
type: string
length: 255
nullable: true
fsi:
uploadable:
targetField: name
How can I help you explore Laravel packages today?