Devise\Support\DeviseSeeder::callOnlyOnce PHP Method

callOnlyOnce() protected method

This gives us the ability to call the seeds only once. We will keep up with what classes have ran in the database and that way we know which ones to call and which ones not to call.
protected callOnlyOnce ( [type] $seederClass ) : [type]
$seederClass [type]
return [type]
    protected function callOnlyOnce($seederClass)
    {
        $found = DB::table('dvs_seeds')->where('name', '=', $seederClass)->first();
        if ($found) {
            return;
        }
        $this->call($seederClass);
        DB::table('dvs_seeds')->insert(['name' => $seederClass, 'created_at' => new Datetime(), 'updated_at' => new Datetime()]);
    }