Skip to content

Idea: timestamps() #4

@robsontenorio

Description

@robsontenorio

Like original Laravel migration files. Something like this would be usefull:

<?php

namespace App;

use Deiucanta\Smart\Field;
use Deiucanta\Smart\Model;

class Product extends Model
{
    public function fields()
    {
        return [
            Field::make('id')->increments(),
            Field::make('titulo')->text(),
            Field::timestamps() // or some fancy method name
        ];
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions