/** * Run the database seeds. * * @return void */ public function run() { Eloquent::unguard(); // Initialize text sentence preprocessor component $id = 'textsentencepreprocessor'; $label = 'This component is used for transforming text files'; $txtPreprocessor = new SoftwareComponent($id, $label); $txtPreprocessor['domains'] = []; $txtPreprocessor['configurations'] = []; $txtPreprocessor->save(); // Initialize media search component $id = 'mediasearchcomponent'; $label = 'This component is used for searching media in MongoDB'; $txtPreprocessor = new SoftwareComponent($id, $label); $txtPreprocessor['keys'] = []; $txtPreprocessor->save(); }