30 lines
516 B
PHP
Executable File
30 lines
516 B
PHP
Executable File
<?php
|
|
|
|
namespace Common;
|
|
|
|
use Illuminate\Database\Eloquent\Model as Original;
|
|
|
|
abstract class Model extends Original
|
|
{
|
|
// Retrocompatibilità MySQL
|
|
public function setUpdatedAtAttribute($value)
|
|
{
|
|
// to Disable updated_at
|
|
}
|
|
|
|
/**
|
|
* Crea una nuova istanza del modello.
|
|
*
|
|
* @return static
|
|
*/
|
|
public static function build()
|
|
{
|
|
return new static();
|
|
}
|
|
|
|
public static function getTableName()
|
|
{
|
|
return with(new static())->getTable();
|
|
}
|
|
}
|