| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | |
| 7 | 7 | class DashboardController | 
| 8 | 8 |  { | 
| 9 | -    public function page(){ | |
| 9 | +    public function page() { | |
| 10 | 10 |          return view('mongicommerce::admin.pages.dashboard'); | 
| 11 | 11 | } | 
| 12 | 12 | } | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function up() | 
| 15 | 15 |      { | 
| 16 | -        Schema::create('orders', function (Blueprint $table) { | |
| 16 | +        Schema::create('orders', function(Blueprint $table) { | |
| 17 | 17 | $table->id(); | 
| 18 | 18 |              $table->unsignedBigInteger('user_id'); | 
| 19 | 19 |              $table->date('shipped_date')->nullable(); | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function up() | 
| 15 | 15 |      { | 
| 16 | -        Schema::create('cart', function (Blueprint $table) { | |
| 16 | +        Schema::create('cart', function(Blueprint $table) { | |
| 17 | 17 | $table->id(); | 
| 18 | 18 |              $table->unsignedBigInteger('user_id'); | 
| 19 | 19 |              $table->unsignedBigInteger('product_id'); | 
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | |
| 11 | 11 | class DetailTypeSeeder extends Seeder | 
| 12 | 12 |  { | 
| 13 | -     public function run(){ | |
| 13 | +     public function run() { | |
| 14 | 14 |           foreach (DetailTypes::all() as $detail) { | 
| 15 | 15 |               DB::table('detail_type')->insert(['name' => $detail]); | 
| 16 | 16 | } | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function up() | 
| 15 | 15 |      { | 
| 16 | -        Schema::create('products', function (Blueprint $table) { | |
| 16 | +        Schema::create('products', function(Blueprint $table) { | |
| 17 | 17 | $table->id(); | 
| 18 | 18 |              $table->string('name'); | 
| 19 | 19 |              $table->text('description'); | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function up() | 
| 15 | 15 |      { | 
| 16 | -        Schema::create('statuses_order', function (Blueprint $table) { | |
| 16 | +        Schema::create('statuses_order', function(Blueprint $table) { | |
| 17 | 17 | $table->id(); | 
| 18 | 18 |              $table->string('name'); | 
| 19 | 19 |              $table->string('color'); | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function up() | 
| 15 | 15 |      { | 
| 16 | -        Schema::create('detail', function (Blueprint $table) { | |
| 16 | +        Schema::create('detail', function(Blueprint $table) { | |
| 17 | 17 | $table->id(); | 
| 18 | 18 |              $table->string('name'); | 
| 19 | 19 |              $table->unsignedBigInteger('category_id'); | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function up() | 
| 15 | 15 |      { | 
| 16 | -        Schema::create('detail_type', function (Blueprint $table) { | |
| 16 | +        Schema::create('detail_type', function(Blueprint $table) { | |
| 17 | 17 | $table->id(); | 
| 18 | 18 |              $table->string('name'); | 
| 19 | 19 | $table->timestamps(); | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function up() | 
| 15 | 15 |      { | 
| 16 | -        Schema::create('payment_type', function (Blueprint $table) { | |
| 16 | +        Schema::create('payment_type', function(Blueprint $table) { | |
| 17 | 17 | $table->id(); | 
| 18 | 18 |              $table->string('name'); | 
| 19 | 19 | $table->timestamps(); |