database/seeds/levelSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
    	$data = [
    		[
    			"nama" => "Administrator"
    		],
    		[
    			"nama" => "Operator"
    		],
    		[
    			"nama" => "Masyarakat"
    		],
    	];
    	foreach ($data as $d) {
    		Level::create($d);
    	}
    }
public function run ( ) { $ data = [ [ " nama " => " Administrator " ] , [ " nama " => " Operator " ] , [ " nama " => " Masyarakat " ] , ] ; foreach ( $ data as $ d ) { Level :: create ( $ d ) ; } }
Run the database seeds.
Run the database seeds .