Update api requests

This commit is contained in:
miroman-afk
2021-05-31 16:11:03 +03:00
parent 8990126842
commit 3b61b27200
54 changed files with 1911 additions and 362 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace Database\Component\Seeders;
use App\Component\Models\ClientsGroup;
use Illuminate\Database\Seeder;
class AddClientGroup extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run() {
if (ClientsGroup::where('code', '0')->count() == 0) {
$group = new ClientsGroup([
'code' => '0',
'name' => 'Без группы',
]);
$group->save();
}
}
}