Completed
Push — master ( 21ddf1...1004bc )
by Sergi Tur
02:59
created

CreatesModels   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createModel() 0 3 1
1
<?php
2
3
namespace Acacha\AdminLTETemplateLaravel\Console;
4
5
/**
6
 * Class CreatesModels.
7
 *
8
 * @package Acacha\AdminLTETemplateLaravel\Console
9
 */
10
trait CreatesModels
11
{
12
    /**
13
     * Create a model and migration using make:model command
14
     */
15
    public function createModel($name) {
16
        passthru('php artisan make:model -m ' . snake_case($name));
17
    }
18
}