/** * Run the migrations. * * @return void */ public function up() { $resource = Resource::builder()->find('forms-master-tables'); if ($resource == null) { Resource::create(['id_007' => 'forms-master-tables', 'name_007' => 'Master tables', 'package_id_007' => '4']); } }
/** * Run the migrations. * * @return void */ public function up() { $response = \Syscover\Pulsar\Models\Resource::find('market-tpv-paypal-web-profile'); if ($response == null) { \Syscover\Pulsar\Models\Resource::create(['id_007' => 'market-tpv-paypal-web-profile', 'name_007' => 'TPVs -- PayPal -- Web profile', 'package_id_007' => '12']); } }
/** * Run the migrations. * * @return void */ public function up() { $response = \Syscover\Pulsar\Models\Resource::find('admin-report'); if ($response == null) { \Syscover\Pulsar\Models\Resource::create(['id_007' => 'admin-report', 'name_007' => 'Reports', 'package_id_007' => '2']); } }
/** * Run the migrations. * * @return void */ public function up() { if (Resource::where('id_007', 'admin-attachment-mime')->count() == 0 && Package::where('id_012', 2)->count() == 1) { Resource::create(['id_007' => 'admin-attachment-mime', 'name_007' => 'Attachments - Attachment Mime', 'package_id_007' => '2']); } }
public function storeCustomRecord($parameters) { Resource::create(['id_007' => $this->request->input('id'), 'package_id_007' => $this->request->input('package'), 'name_007' => $this->request->input('name')]); }