Alias definitions 1.0.0
This commit is contained in:
20
common/Alias/NewEstado.php
Normal file
20
common/Alias/NewEstado.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Alias;
|
||||
|
||||
use Carbon\Carbon;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Aldarien
|
||||
* @property int id
|
||||
* @property Date fecha
|
||||
*
|
||||
*/
|
||||
class NewEstado extends NewModel
|
||||
{
|
||||
public function fecha()
|
||||
{
|
||||
return Carbon::parse($this->fecha, config('app.timezone'));
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user