Documentation and minor fixes
This commit is contained in:
@@ -16,9 +16,6 @@ class BuildingSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
$items = [
|
||||
['name' => 'Bygning 7'],
|
||||
['name' => 'Bygning 8'],
|
||||
['name' => 'Test Building'],
|
||||
];
|
||||
foreach ($items as $item) {
|
||||
Building::create($item);
|
||||
|
||||
@@ -17,7 +17,6 @@ class ProductModelSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
$items = [
|
||||
['brand_id' => Brand::where('name','=','Test Brand')->first()->id,'name' => 'Test Model'],
|
||||
];
|
||||
foreach ($items as $item) {
|
||||
ProductModel::create($item);
|
||||
|
||||
@@ -20,25 +20,6 @@ class ProductSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
$items = [
|
||||
[
|
||||
'product_category_id' => ProductCategory::where('name','=','Laptop')->first()->id,
|
||||
'product_subcategory_id' => ProductSubcategory::where('name','=','Server Rum')->first()->id,
|
||||
'brand_id' => Brand::where('name','=','Test Brand')->first()->id,
|
||||
'product_model_id' => ProductModel::where('name','=','Test Model')->first()->id,
|
||||
'name' => 'Test Product',
|
||||
'description' => "Test Description",
|
||||
'total' => 100,
|
||||
'barcode' => "Test.Product.0001",
|
||||
],
|
||||
[
|
||||
'product_category_id' => ProductCategory::where('name','=','Laptop')->first()->id,
|
||||
'brand_id' => Brand::where('name','=','Test Brand')->first()->id,
|
||||
'product_model_id' => ProductModel::where('name','=','Test Model')->first()->id,
|
||||
'name' => 'Test Product 2',
|
||||
'description' => "Test Description 2",
|
||||
'total' => 100,
|
||||
'barcode' => "Test.Product.0002",
|
||||
],
|
||||
];
|
||||
foreach ($items as $item) {
|
||||
Product::create($item);
|
||||
|
||||
@@ -17,8 +17,6 @@ class RoomSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
$items = [
|
||||
['building_id' => Building::where('name','=','Bygning 7')->first()->id,'name' => '7X1'],
|
||||
['building_id' => Building::where('name','=','Bygning 8')->first()->id,'name' => '8X1'],
|
||||
];
|
||||
foreach ($items as $item) {
|
||||
Room::create($item);
|
||||
|
||||
@@ -16,62 +16,6 @@ class UserSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
User::firstOrCreate([
|
||||
'name' => "Danny Johansson",
|
||||
'username' => 'dann4624',
|
||||
'guid' => '5e5417ed-d489-4376-a2d3-c263e70fe15e',
|
||||
'domain' => 'default',
|
||||
'password' => Hash::make('Nimai!1159'),
|
||||
'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'adUser')->id,
|
||||
'role_id' => 1
|
||||
]);
|
||||
|
||||
User::firstOrCreate([
|
||||
'name' => "Ynnad Nossnahoj",
|
||||
'username' => 'dann4625',
|
||||
'password' => Hash::make('Nimai!1159'),
|
||||
'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id,
|
||||
'role_id' => 1
|
||||
]);
|
||||
|
||||
User::firstOrCreate([
|
||||
'name' => "Demo Admin",
|
||||
'username' => 'demo_admin',
|
||||
'password' => Hash::make('Pass1234'),
|
||||
'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id,
|
||||
'role_id' => 1
|
||||
]);
|
||||
|
||||
User::firstOrCreate([
|
||||
'name' => "Demo Student",
|
||||
'username' => 'demo_student',
|
||||
'password' => Hash::make('Pass1234'),
|
||||
'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id,
|
||||
'role_id' => 2
|
||||
]);
|
||||
|
||||
User::firstOrCreate([
|
||||
'name' => "Demo Teacher",
|
||||
'username' => 'demo_teacher',
|
||||
'password' => Hash::make('Pass1234'),
|
||||
'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id,
|
||||
'role_id' => 3
|
||||
]);
|
||||
|
||||
User::firstOrCreate([
|
||||
'name' => "Demo Helper",
|
||||
'username' => 'demo_helper',
|
||||
'password' => Hash::make('Pass1234'),
|
||||
'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id,
|
||||
'role_id' => 4
|
||||
]);
|
||||
|
||||
User::firstOrCreate([
|
||||
'name' => "Demo Server",
|
||||
'username' => 'demo_server',
|
||||
'password' => Hash::make('Pass1234'),
|
||||
'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id,
|
||||
'role_id' => 5
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user