Pārlūkot izejas kodu

Added container:debug command. Fixed PostsController@index.

Frederic G. MARAND 7 gadi atpakaļ
vecāks
revīzija
c031c0a9e4
4 mainītis faili ar 299 papildinājumiem un 236 dzēšanām
  1. 1 1
      app/Http/Controllers/PostsController.php
  2. 61 49
      composer.json
  3. 236 185
      composer.lock
  4. 1 1
      config/app.php

+ 1 - 1
app/Http/Controllers/PostsController.php

@@ -60,7 +60,7 @@ class PostsController extends Controller
             ->filter($request->only(['month', 'year']))
             ->get();
 
-        return view('posts.index', compact('archives'));
+        return view('posts.index', compact('posts'));
     }
 
     public function show(Post $post)

+ 61 - 49
composer.json

@@ -1,52 +1,64 @@
 {
-    "name": "laravel/laravel",
-    "description": "The Laravel Framework.",
-    "keywords": ["framework", "laravel"],
-    "license": "MIT",
-    "type": "project",
-    "require": {
-        "php": ">=7.0",
-        "laravel/framework": "5.4.*",
-        "laravel/tinker": "~1.0"
-    },
-    "require-dev": {
-        "fzaninotto/faker": "~1.4",
-        "mockery/mockery": "0.9.*",
-        "phpunit/phpunit": "~5.7"
-    },
-    "autoload": {
-        "classmap": [
-            "database/seeds",
-            "database/factories"
-        ],
-        "psr-4": {
-            "App\\": "app/"
-        }
-    },
-    "autoload-dev": {
-        "psr-4": {
-            "Tests\\": "tests/"
-        }
-    },
-    "scripts": {
-        "post-root-package-install": [
-            "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
-        ],
-        "post-create-project-cmd": [
-            "php artisan key:generate"
-        ],
-        "post-install-cmd": [
-            "Illuminate\\Foundation\\ComposerScripts::postInstall",
-            "php artisan optimize"
-        ],
-        "post-update-cmd": [
-            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
-            "php artisan optimize"
-        ]
-    },
-    "config": {
-        "preferred-install": "dist",
-        "sort-packages": true,
-        "optimize-autoloader": true
+  "autoload": {
+    "classmap": [
+      "database/seeds",
+      "database/factories"
+    ],
+    "psr-4": {
+      "App\\": "app/"
     }
+  },
+  "autoload-dev": {
+    "psr-4": {
+      "Tests\\": "tests/"
+    }
+  },
+  "config": {
+    "preferred-install": "dist",
+    "sort-packages": true,
+    "optimize-autoloader": true
+  },
+  "description": "The Laravel Framework.",
+  "keywords": [
+    "framework",
+    "laravel"
+  ],
+  "license": "MIT",
+  "minimum-stability": "dev",
+  "name": "laravel/laravel",
+  "prefer-stable": true,
+  "repositories": [
+    {
+      "type": "vcs",
+      "url": "https://github.com/FGM/container-debug.git"
+    }
+  ],
+  "require": {
+    "php": ">=7.0",
+    "laravel/framework": "5.4.*",
+    "laravel/tinker": "~1.0"
+  },
+  "require-dev": {
+    "fgm/container-debug": "5.0.x-dev",
+    "fzaninotto/faker": "~1.4",
+    "mockery/mockery": "0.9.*",
+    "phpunit/phpunit": "~5.7"
+  },
+  "scripts": {
+    "post-root-package-install": [
+      "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
+    ],
+    "post-create-project-cmd": [
+      "php artisan key:generate"
+    ],
+    "post-install-cmd": [
+      "Illuminate\\Foundation\\ComposerScripts::postInstall",
+      "php artisan optimize"
+    ],
+    "post-update-cmd": [
+      "Illuminate\\Foundation\\ComposerScripts::postUpdate",
+      "php artisan optimize"
+    ]
+  },
+  "type": "project"
 }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 236 - 185
composer.lock


+ 1 - 1
config/app.php

@@ -177,7 +177,7 @@ return [
         // App\Providers\BroadcastServiceProvider::class,
         App\Providers\EventServiceProvider::class,
         App\Providers\RouteServiceProvider::class,
-
+        DayleRees\ContainerDebug\ServiceProvider::class
     ],
 
     /*

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels