<?php

namespace Sargilla\Flatlab4\Console;

/**
 * Class CreatesModels.
 *
 * @package Sargilla\Flatlab4\Console
 */
trait CreatesModels
{
    /**
     * Create a model and migration using make:model command
     */
    public function createModel($name)
    {
        passthru('php artisan make:model -m ' . snake_case($name));
    }
}
