Completed
Push — master ( 6694cd...73d764 )
by Esza
01:06
created

DatabaseSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Jawaraegov\Workflows\database\seeds;
3
use Illuminate\Database\Seeder;
4
5
class DatabaseSeeder extends Seeder
6
{
7
    /**
8
     * Run the database seeds.
9
     *
10
     * @return void
11
     */
12
    public function run()
13
    {
14
		$this->clear_data();
15
        $this->call(WorkflowsSeeder::class);
16
        $this->call(WorkflowStatesSeeder::class);
17
        $this->call(WorkflowTransitionsSeeder::class);
18
    }
19
	
20
    function clear_data(){
21
        \DB::table('workflows')->delete();
22
        \DB::table('workflow_states')->delete();
23
        \DB::table('workflow_transitions')->delete();
24
    }
25
}
26