<?php

namespace Sargilla\Flatlab4\Console;

use Illuminate\Support\Str;

/**
 * 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 ' . Str::snake($name));
    }
}
