protected function seedMetrics()
    {
        $defaultMetrics = [
            [
                'name'          => 'Cups of coffee',
                'suffix'        => 'Cups',
                'description'   => 'How many cups of coffee we\'ve drank.',
                'default_value' => 0,
                'calc_type'     => 1,
                'display_chart' => 1,
            ],
        ];

        Metric::truncate();

        foreach ($defaultMetrics as $metric) {
            Metric::create($metric);
        }
    }
protected function seedMetrics()
    {
        $defaultMetrics = [
            [
                'name'          => 'Cups of coffee',
                'suffix'        => 'Cups',
                'description'   => 'How many cups of coffee we\'ve drank.',
                'default_value' => 0,
                'calc_type'     => 1,
                'display_chart' => 1,
            ],
        ];

        Metric::truncate();

        foreach ($defaultMetrics as $metric) {
            Metric::create($metric);
        }
    }
protected function seedMetrics ( ) { $ defaultMetrics = [ [ 'name' => 'Cups of coffee' , 'suffix' => 'Cups' , 'description' => 'How many cups of coffee we\'ve drank.' , 'default_value' => 0 , 'calc_type' => 1 , 'display_chart' => 1 , ] , ] ; Metric :: truncate ( ) ; foreach ( $ defaultMetrics as $ metric ) { Metric :: create ( $ metric ) ; } }
Seed the metrics table.

@return void
Seed the metrics table .