The popularity of WordPress
meets the power of Laravel


<?php

class Project extends Model implements CustomPostType
{
    /**
    * Returns an array of arguments that define the custom
    * post type. These are the same arguments that would
    * normally be passed to register_post_type.
    *
    * @see  register_post_type
    * @return  array
    */
    public function customPostTypeData()
    {
        return [
            'rewrite' => ['slug' => 'project'],
            'supports' => array('title', 'editor', 'thumbnail'),
        ];
    }
}