src/Support/Illuminate/Database/SeederTrait.php
protected function getForeignKeyCheck($enable = true)
    {
        $default = Config::get('database.default');
        switch ($default) {
            case 'sqlite':
                $string = 'PRAGMA foreign_keys = ' . ($enable ? 'ON' : 'OFF');
                break;
            default:
                $string = 'SET FOREIGN_KEY_CHECKS = ' . ($enable ? '1' : '0');
                break;
         }
        return $string;
    }
protected function getForeignKeyCheck($enable = true)
    {
        $default = Config::get('database.default');
        switch ($default) {
            case 'sqlite':
                $string = 'PRAGMA foreign_keys = ' . ($enable ? 'ON' : 'OFF');
                break;
            default:
                $string = 'SET FOREIGN_KEY_CHECKS = ' . ($enable ? '1' : '0');
                break;
         }
        return $string;
    }
protected function getForeignKeyCheck ( $ enable = true ) { $ default = Config :: get ( 'database.default' ) ; switch ( $ default ) { case 'sqlite' : $ string = 'PRAGMA foreign_keys = ' . ( $ enable ? 'ON' : 'OFF' ) ; break ; default : $ string = 'SET FOREIGN_KEY_CHECKS = ' . ( $ enable ? '1' : '0' ) ; break ; } return $ string ; }
enable and disable foreign key constraints
@param  boolean $enable [description]
@return string          db statement
enable and disable foreign key constraints