Skip to content

Commit

Permalink
update seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
saleem-hadad committed Jul 23, 2022
1 parent 1ad77ed commit 070c4d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions database/seeders/CategoryBrandSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,48 +14,48 @@ class CategoryBrandSeeder extends Seeder
*/
public function run()
{
Category::create(['name' => 'Income', 'type' => Category::INCOME])
Category::create(['name' => 'Income', 'type' => Category::INCOME, 'color' => 'red'])
->brands()
->create(['name' => 'Salary']);

Category::create(['name' => 'Housing', 'type' => Category::EXPENSES])
Category::create(['name' => 'Housing', 'type' => Category::EXPENSES, 'color' => 'blue'])
->brands()
->create(['name' => 'House Rent']);

Category::create(['name' => 'Groceries', 'type' => Category::EXPENSES])
Category::create(['name' => 'Groceries', 'type' => Category::EXPENSES, 'color' => 'green'])
->brands()
->createMany([
['name' => 'LULU'],
['name' => 'CARREFOUR'],
]);

Category::create(['name' => 'Utilities', 'type' => Category::EXPENSES])
Category::create(['name' => 'Utilities', 'type' => Category::EXPENSES, 'color' => 'orange'])
->brands()
->createMany([
['name' => 'Smart Dubai'],
]);

Category::create(['name' => 'Transportation', 'type' => Category::EXPENSES])
Category::create(['name' => 'Transportation', 'type' => Category::EXPENSES, 'color' => 'purple'])
->brands()
->createMany([
['name' => 'ENOC'],
]);

Category::create(['name' => 'Shopping', 'type' => Category::EXPENSES])
Category::create(['name' => 'Shopping', 'type' => Category::EXPENSES, 'color' => 'pink'])
->brands()
->createMany([
['name' => 'IKEA'],
['name' => 'HOME CENTRE'],
['name' => 'MCDONALDS'],
]);

Category::create(['name' => 'Support', 'type' => Category::EXPENSES])
Category::create(['name' => 'Support', 'type' => Category::EXPENSES, 'color' => 'indigo'])
->brands()
->createMany([
['name' => 'Family Support'],
]);

Category::create(['name' => 'Debt', 'type' => Category::EXPENSES])
Category::create(['name' => 'Debt', 'type' => Category::EXPENSES, 'color' => 'gray'])
->brands()
->createMany([
['name' => 'Debt'],
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=bd035bcbd296bf421db7",
"/js/app.js": "/js/app.js?id=14ea2f27707f02a2d4c2",
"/css/app.css": "/css/app.css?id=47f30b983f3b1d17c186"
}

0 comments on commit 070c4d2

Please sign in to comment.