Skip to content

Commit caf004f

Browse files
committed
Seeder done, create user & admin @readme description & CreateVariantSeeder create
1 parent fbef418 commit caf004f

13 files changed

+14858
-738
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
Homestead.json
1010
Homestead.yaml
1111
npm-debug.log
12-
yarn-error.log
12+
yarn-error.log

README.md

+56-35
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,64 @@
1212
</a>
1313
</p>
1414

15-
## :heart: Application Name: <b style="color:green;"> E Penguin Shop </>
15+
## :heart: Application Name: <b style="color:green;"> E Penguin Shop </>
16+
1617
<p> Single Vendor Ecommerce web application </p>
1718
</b>
1819

1920
![Admin Home Page](docs/images/admin-dashboard-dark.png)
21+
2022
<p style="text-align:center"> (Image: Admin Dashboard Dark Theme ) </p>
2123

2224
![Admin ](docs/images/admin-dashboard-light.png)
25+
2326
<p style="text-align:center"> (Image: Admin Dashboard (Light Theme)) </p>
2427

2528
![Home Page](docs/images/home.png)
29+
2630
<p style="text-align:center"> (Image: Home Page </p>
2731

28-
## :hugs: Requirements
29-
* PHP >= 7.3
30-
* MySQL
31-
* Apache
32-
* Laravel >= 8.0
32+
## :hugs: Requirements
33+
34+
* PHP >= 7.3
35+
* MySQL
36+
* Apache
37+
* Laravel >= 8.0
3338
* Composer
3439

35-
## :clap: Installation:
40+
## :clap: Installation:
3641

37-
```
42+
```bash
3843
composer install
3944

4045
npm install
4146

47+
cp .env.example .env
48+
49+
# Database Connection on .env
50+
4251
php artisan cache:clear
4352

4453
php artisan key:generate
4554

55+
# First Time
56+
php artisan migrate:fresh --seed
57+
58+
# After first time migration
59+
php artisan migrate
60+
61+
php artisan db:seed
62+
63+
64+
php artisan storage:link
65+
66+
# Run Backend Server by Terminal
4667
php artisan serve
47-
```
4868

69+
# Run Frontend Server by Terminal
70+
npm run watch-poll
71+
72+
```
4973

5074
<table width="80%" style="margin-top:10px;margin-bottom:10px;color:yellow;font-weight:bold;background:#012;">
5175
<thead>
@@ -63,29 +87,27 @@
6387
</tbody>
6488
</table>
6589

66-
## :hand: Features
67-
* #### ;) Backend
68-
* **Caching**
69-
* Authentication : ( *Multi Guard* ) Session based Authentication
70-
* **Repository Pattern**
71-
* Packages & Stub
72-
* Model Observer ( used for cache deleting)
73-
* Authorization: Gate, Policies
74-
* Requests, Validation , Refactoring & File Upload
75-
* Scope Filter in Model
76-
* ORM for MySQL ( Elequent ORM )
77-
*
78-
* ### :* Frontend:
79-
* Frontend Framework : `Vue Js`
80-
* Library : `IViewUi`, `Vue-owl-carousel`,`VueX`,`Vue-router`,`lodash`,`jQuery`,`axios`
81-
* `Admin LTE 3` in Admin Panel & Molla Ecommerce Template in Frontend
82-
* **Dynamic/ Auto Import Modules (Store, Routes) in frontend**
83-
* **Localization : Mutliple Languege (Bangla :bangladesh: + English :us: implemented) by `vue-i18n`**
84-
* Light/Dark Theme & Grid/List Layout
85-
* <u color="red">Code Spliting , Lazy Loading </u>, Less Ajax request
86-
*
87-
88-
90+
## :hand: Features
91+
92+
- #### ;) Backend
93+
- **Caching**
94+
- Authentication : ( _Multi Guard_ ) Session based Authentication
95+
- **Repository Pattern**
96+
- Packages & Stub
97+
- Model Observer ( used for cache deleting)
98+
- Authorization: Gate, Policies
99+
- Requests, Validation , Refactoring & File Upload
100+
- Scope Filter in Model
101+
- ## ORM for MySQL ( Elequent ORM )
102+
- ### :\* Frontend:
103+
- Frontend Framework : `Vue Js`
104+
- Library : `IViewUi`, `Vue-owl-carousel`,`VueX`,`Vue-router`,`lodash`,`jQuery`,`axios`
105+
- `Admin LTE 3` in Admin Panel & Molla Ecommerce Template in Frontend
106+
- **Dynamic/ Auto Import Modules (Store, Routes) in frontend**
107+
- **Localization : Mutliple Languege (Bangla :bangladesh: + English :us: implemented) by `vue-i18n`**
108+
- Light/Dark Theme & Grid/List Layout
109+
- <u color="red">Code Spliting , Lazy Loading </u>, Less Ajax request
110+
-
89111

90112
<table width="80%" style="margin-top:10px;margin-bottom:10px;color:yellow;font-weight:bold;background:#210;">
91113
<thead>
@@ -189,6 +211,5 @@
189211
</tbody>
190212
</table>
191213

192-
193-
:heart: Happy Coding :clap: 🚀
194-
![twitter](https://img.shields.io/twitter/follow/samayunmc.svg?style=social)
214+
:heart: Happy Coding :clap: 🚀
215+
![twitter](https://img.shields.io/twitter/follow/samayunmc.svg?style=social)

database/seeders/CreateUsersSeeder.php

+29-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Illuminate\Database\Seeder;
66

7+
use App\Models\Admin;
8+
use App\Models\User;
9+
710
class CreateUsersSeeder extends Seeder
811
{
912
/**
@@ -13,6 +16,31 @@ class CreateUsersSeeder extends Seeder
1316
*/
1417
public function run()
1518
{
16-
//
19+
Admin::create([
20+
'name'=>'Admin BoSs',
21+
'email'=>'[email protected]',
22+
'is_super' => 0,
23+
'password'=> \Hash::make('123456'),
24+
]);
25+
26+
Admin::create([
27+
'name'=> 'Heath Ledger',
28+
'email'=>'[email protected]',
29+
'is_super' => 1,
30+
'password'=> \Hash::make('123456'),
31+
]);
32+
Admin::create([
33+
'name'=>'Samayun Chowdhury ',
34+
'email'=>'[email protected]',
35+
'is_super' => 1,
36+
'password'=> \Hash::make('123456'),
37+
]);
38+
39+
User::create([
40+
'name'=>'Christian Bale',
41+
'email'=>'[email protected]',
42+
'status' => 'created',
43+
'password'=> \Hash::make('123456')
44+
]);
1745
}
1846
}

database/seeders/CreateAdminSeeder.php renamed to database/seeders/CreateVariantSeeder.php

+2-14
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
namespace Database\Seeders;
44

55
use Illuminate\Database\Seeder;
6-
use App\Models\Admin;
76
use App\Models\Attribute;
87
use App\Models\Category;
98

10-
class CreateAdminSeeder extends Seeder
9+
class CreateVariantSeeder extends Seeder
1110
{
1211
/**
1312
* Run the database seeds.
@@ -16,12 +15,7 @@ class CreateAdminSeeder extends Seeder
1615
*/
1716
public function run()
1817
{
19-
Admin::create([
20-
'name'=>'Samayun Chowdhury ',
21-
'email'=>'[email protected]',
22-
'is_super' => 1,
23-
'password'=> \Hash::make('123456'),
24-
]);
18+
2519
Attribute::create(['name' => 'Color','slug' => 'color']);
2620
Attribute::create(['name' => 'Size','slug' => 'size']);
2721

@@ -33,11 +27,5 @@ public function run()
3327
'parent_id' => 1
3428
]);
3529

36-
Admin::create([
37-
'name'=>'Admin BoSs',
38-
'email'=>'[email protected]',
39-
'is_super' => 0,
40-
'password'=> \Hash::make('123456'),
41-
]);
4230
}
4331
}

database/seeders/DatabaseSeeder.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class DatabaseSeeder extends Seeder
1717
public function run()
1818
{
1919
// \App\Models\User::factory(10)->create();
20-
$this->call(CreateAdminSeeder::class);
20+
$this->call(CreateVariantSeeder::class);
21+
$this->call(CreateUsersSeeder::class);
2122
// Category::factory(20)->create();
2223
// Brand::factory(10)->create();
2324
// Product::factory(20)->create();

0 commit comments

Comments
 (0)