Model Meta Information

    • title: The field that is most closely associated with being the title of each record. Defaults to or name if either of those fields are available.
    • key: The field that acts as the primary key or identifier for a record. Defaults to id if that field is available. The key can also be set using the key() method.
    • source: The table name or document collection being accessed. The default is an all lowercase version of the class name with underscores as spaces. Class names like BlogPost and would default to the blog_posts table.
    1. Posts::meta('source');
    2. Posts::meta('key');
    3. // an alternative for the key is: