Browse Source

Add debug bar

master
Les De Ridder 3 years ago
parent
commit
6196383c0a
4 changed files with 155 additions and 1 deletions
  1. +1
    -0
      .gitignore
  2. +23
    -0
      app/Http/Controllers/PollController.php
  3. +1
    -0
      composer.json
  4. +130
    -1
      composer.lock

+ 1
- 0
.gitignore View File

@ -12,3 +12,4 @@ npm-debug.log
yarn-error.log
.env
.phpunit.result.cache
/storage/debugbar

+ 23
- 0
app/Http/Controllers/PollController.php View File

@ -17,8 +17,31 @@ class PollController extends Controller
public function create(Request $request)
{
$validatedInput = $request->validate([
'question' => 'required|string',
'option' => 'required|min:3|distinct'
/*
question: Are traps gay?
option[]: Yes
option[]: No
multiple_answers_allowed: on
hide_results_until_closed: on
automatically_close_poll: on
automatically_close_poll_datetime: 2018-10-12T18:45
set_admin_password: on
admin_password: sadasdasdasdasdas
duplicate_vote_checking: codes
number_of_codes: 10
*/
]);
debug($validatedInput);
$poll = new Poll;
$poll->created_at = Carbon::now();
return view('create_poll');
}
public function view(Request $request, Poll $poll)


+ 1
- 0
composer.json View File

@ -11,6 +11,7 @@
"laravel/tinker": "^1.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",


+ 130
- 1
composer.lock View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "66ca7343889332c2b8ecca11c251430c",
"content-hash": "a875862ccc0c27fcee12c6892c3e2b32",
"packages": [
{
"name": "dnoegel/php-xdg-base-dir",
@ -2361,6 +2361,74 @@
}
],
"packages-dev": [
{
"name": "barryvdh/laravel-debugbar",
"version": "v3.2.0",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-debugbar.git",
"reference": "5b68f3972083a7eeec0d6f161962fcda71a127c0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/5b68f3972083a7eeec0d6f161962fcda71a127c0",
"reference": "5b68f3972083a7eeec0d6f161962fcda71a127c0",
"shasum": ""
},
"require": {
"illuminate/routing": "5.5.x|5.6.x|5.7.x",
"illuminate/session": "5.5.x|5.6.x|5.7.x",
"illuminate/support": "5.5.x|5.6.x|5.7.x",
"maximebf/debugbar": "~1.15.0",
"php": ">=7.0",
"symfony/debug": "^3|^4",
"symfony/finder": "^3|^4"
},
"require-dev": {
"laravel/framework": "5.5.x"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.2-dev"
},
"laravel": {
"providers": [
"Barryvdh\\Debugbar\\ServiceProvider"
],
"aliases": {
"Debugbar": "Barryvdh\\Debugbar\\Facade"
}
}
},
"autoload": {
"psr-4": {
"Barryvdh\\Debugbar\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "PHP Debugbar integration for Laravel",
"keywords": [
"debug",
"debugbar",
"laravel",
"profiler",
"webprofiler"
],
"time": "2018-08-22T11:06:19+00:00"
},
{
"name": "beyondcode/laravel-dump-server",
"version": "1.2.1",
@ -2635,6 +2703,67 @@
],
"time": "2016-01-20T08:20:44+00:00"
},
{
"name": "maximebf/debugbar",
"version": "v1.15.0",
"source": {
"type": "git",
"url": "https://github.com/maximebf/php-debugbar.git",
"reference": "30e7d60937ee5f1320975ca9bc7bcdd44d500f07"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/30e7d60937ee5f1320975ca9bc7bcdd44d500f07",
"reference": "30e7d60937ee5f1320975ca9bc7bcdd44d500f07",
"shasum": ""
},
"require": {
"php": ">=5.3.0",
"psr/log": "^1.0",
"symfony/var-dumper": "^2.6|^3.0|^4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0|^5.0"
},
"suggest": {
"kriswallsmith/assetic": "The best way to manage assets",
"monolog/monolog": "Log using Monolog",
"predis/predis": "Redis storage"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.14-dev"
}
},
"autoload": {
"psr-4": {
"DebugBar\\": "src/DebugBar/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Maxime Bouroumeau-Fuseau",
"email": "maxime.bouroumeau@gmail.com",
"homepage": "http://maximebf.com"
},
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "Debug bar in the browser for php application",
"homepage": "https://github.com/maximebf/php-debugbar",
"keywords": [
"debug",
"debugbar"
],
"time": "2017-12-15T11:13:46+00:00"
},
{
"name": "mockery/mockery",
"version": "1.2.0",


Loading…
Cancel
Save