Closed PiousVenom closed 3 years ago
@PiousVenom Not sure what can be the problem, but:
vendor\jeroennoten\laravel-adminlte\resources\views\components\form\input.blade.php
is only used for the <x-adminlte-input/>
blade component, and I do not see any on your code.@component
directive is old. I can't see it documented on Laravel 8.x, but it was used on Laravel 5.5.I suggest you to try a minimal example first, with one of the examples provided here, i.e, just a test page with a modal and a button to toggle it. After that test, just comment below if the problem persist.
Okay. I think I see. The @component
actually has that tag:
@section('plugins.TempusDominusBs4', true)
<div class="col-md-12">
<h1>New Game Information</h1>
<div class="gameForm" style="width: 100%;">
<form action="{{route("addNewGame")}}" method="POST" class="navbar-form navbar-left" id="newGame">
@csrf
<div class="form-group" style="padding-left:25px;">
<div class="input-group gameFormInfo row" style="width: 100%">
<h3 style="width: 90%;">Game Name:</h3>
<br>
<x-adminlte-input name="game_name">
<x-slot name="prependSlot">
<div class="input-group-text">
<i class="fas fa-user text-lightblue"></i>
</div>
</x-slot>
</x-adminlte-input>
</div>
@component('components.add.checkboxes.platform', ['platforms' => $platforms])
@endcomponent
@component('components.add.checkboxes.medium', ['media' => $media])
@endcomponent
@component('components.add.checkboxes.publisher', ['publishers' => $publishers])
@endcomponent
@component('components.add.checkboxes.developer', ['developers' => $developers])
@endcomponent
<div class="form-group">
<h3>Release Date:</h3>
<div class="input-group gameFormInfo row" style="width: 100%">
@php
$config = ['format' => 'YYYY/MM/DD'];
@endphp
<x-adminlte-input-date name="release_date" :config="$config" placeholder="Choose a date...">
<x-slot name="appendSlot">
<div class="input-group-text bg-gradient-danger">
<i class="fas fa-calendar-alt"></i>
</div>
</x-slot>
</x-adminlte-input-date>
</div>
</div>
<button type="submit" class="loadout btn btn-default btn-block" onclick="">
Submit
</button>
</div>
</form>
</div>
</div>
Like I stated earlier, when I go to the route normally, the page loads as expected. I only get the error after returning the view
from the controller. Also, added the minimum modal example, and still got the same error.
@PiousVenom Ok, share your minimal example, the view (with a modal and a button), the controller and the route you are using for it. I will give it a try on my local environment. Currently, I can't reproduce any issue.
However, why you are using @component
on Laravel 8.x? It is not the documented syntax for that version, and may be compatibility problems. I'm not sure why you use that, maybe you wanted to include the components.add.game
with @include(...)
. Read including subviews with laravel.
View: views.add.game.blade.php
@extends('adminlte::page')
@section('title', 'Add Game')
@section('content')
{{-- Minimal --}}
<x-adminlte-modal id="modalMin" title="Minimal"/>
{{-- Example button to open modal --}}
<x-adminlte-button label="Open Modal" data-toggle="modal" data-target="#modalMin"/>
<div class="col-md-12">
<x-adminlte-modal id="modalGreen" title="Game Add" theme="green" icon="fas fa-bolt" size='lg' disable-animations>
<div id="message">
</div>
</x-adminlte-modal>
<x-adminlte-modal id="modalRed" title="Game Add" theme="red" icon="fas fa-bolt" size='lg' disable-animations>
<div id="message">
</div>
</x-adminlte-modal>
@component('components.add.game', ['platforms' => $platforms, 'media' => $media, 'publishers' => $publishers, 'developers' => $developers])
@endcomponent
</div>
@endsection
@section('css')
<link href="{{asset('/css/common.css')}}" rel="stylesheet" type="text/css">
@stop
Component: views.components.add.game
@section('plugins.TempusDominusBs4', true)
<div class="col-md-12">
<h1>New Game Information</h1>
<div class="gameForm" style="width: 100%;">
<form action="{{route("addNewGame")}}" method="POST" class="navbar-form navbar-left" id="newGame">
@csrf
<div class="form-group" style="padding-left:25px;">
<div class="input-group gameFormInfo row" style="width: 100%">
<h3 style="width: 90%;">Game Name:</h3>
<br>
<x-adminlte-input name="game_name">
<x-slot name="prependSlot">
<div class="input-group-text">
<i class="fas fa-user text-lightblue"></i>
</div>
</x-slot>
</x-adminlte-input>
</div>
@component('components.add.checkboxes.platform', ['platforms' => $platforms])
@endcomponent
@component('components.add.checkboxes.medium', ['media' => $media])
@endcomponent
@component('components.add.checkboxes.publisher', ['publishers' => $publishers])
@endcomponent
@component('components.add.checkboxes.developer', ['developers' => $developers])
@endcomponent
<div class="form-group">
<h3>Release Date:</h3>
<div class="input-group gameFormInfo row" style="width: 100%">
@php
$config = ['format' => 'YYYY/MM/DD'];
@endphp
<x-adminlte-input-date name="release_date" :config="$config" placeholder="Choose a date...">
<x-slot name="appendSlot">
<div class="input-group-text bg-gradient-danger">
<i class="fas fa-calendar-alt"></i>
</div>
</x-slot>
</x-adminlte-input-date>
</div>
</div>
<button type="submit" class="loadout btn btn-default btn-block" onclick="">
Submit
</button>
</div>
</form>
</div>
</div>
Controller: GameController.php
<?php
declare(strict_types=1);
namespace App\Http\Controllers;
use App\Helpers\GameHelper;
use App\Models\Developer;
use App\Models\Game;
use App\Models\Medium;
use App\Models\Platform;
use App\Models\Publisher;
use Exception;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\View\View;
use function count;
class GameController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index(): View
{
return view('games')->with([
'games' => Game::orderBy('name')->get(),
]);
}
/**
* Show the form for creating a new resource.
*/
public function create(): View
{
return view('add.game')->with([
'platforms' => Platform::orderBy('name')->get(),
'media' => Medium::orderBy('name')->get(),
'publishers' => Publisher::orderBy('name')->get(),
'developers' => Developer::orderBy('name')->get(),
]);
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
$gameInfo = $request->all();
if (count($gameInfo['platform_ids']) < 1) {
return redirect()->action([self::class, 'create'])
->with('success', false)
->with('message', 'Must select at least one platform.')
;
}
if (count($gameInfo['medium_ids']) < 1) {
return redirect()->action([self::class, 'create'])
->with('success', false)
->with('message', 'Must select at least one medium.')
;
}
if (count($gameInfo['publisher_ids']) < 1) {
return redirect()->action([self::class, 'create'])
->with('success', false)
->with('message', 'Must select at least one publisher.')
;
}
if (count($gameInfo['developer_ids']) < 1) {
return redirect()->action([self::class, 'create'])
->with('success', false)
->with('message', 'Must select at least one developer.')
;
}
if (empty($request->input('game_name'))) {
return redirect()->action([self::class, 'create'])
->with('success', false)
->with('message', 'Must provide a game\'s name.')
;
}
// TODO: CHECK THIS ONCE DONE
$exists = $this->CheckEntryExists($request->input('game_name'));
if ($exists) {
return redirect()->back()
->with('success', false)
->with('message', 'Game already exists.')
;
}
$game = new Game();
$game->name = $gameInfo['game_name'];
$game->release_date = $gameInfo['release_date'];
try {
$game->save();
GameHelper::SaveGamePlatforms($gameInfo['platform_ids'], $game->id);
GameHelper::SaveGameDevelopers($gameInfo['developer_ids'], $game->id);
GameHelper::SaveGameMedia($gameInfo['medium_ids'], $game->id);
GameHelper::SaveGamePublishers($gameInfo['publisher_ids'], $game->id);
} catch (Exception $e) {
return redirect()->action([self::class, 'create'])
->with('success', false)
->with('message', $e->getMessage())
;
}
return view('add.game')
->with(
[
'platforms' => Platform::orderBy('name')->get(),
'media' => Medium::orderBy('name')->get(),
'publishers' => Publisher::orderBy('name')->get(),
'developers' => Developer::orderBy('name')->get(),
'success' => true,
'message' => 'Game added successfully!',
]
);
// return redirect()->action([self::class, 'create'])
// ->with('success', true)
// ->with('message', 'Game added successfully!')
// ;
}
/**
* Display the specified resource.
*/
public function show(Game $game): View
{
$game->load('platforms');
$game->load('media');
$game->load('developers');
$game->load('publishers');
return view('model.game', ['game' => $game]);
}
public function showDeleted(): View
{
//, 'media', 'publishers', 'developers'
$games = Game::with(['platforms' => function ($query) {
$query->withTrashed();
}])->with(['publishers' => function ($query) {
$query->withTrashed();
}])->with(['media' => function ($query) {
$query->withTrashed();
}])->with(['developers' => function ($query) {
$query->withTrashed();
}])
->onlyTrashed()
->orderBy('name')
->get()
;
$games = $games->reject(function ($game) {
return $game->name === 'Test';
});
return view('games')->with([
'games' => $games,
]);
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Game $game): View
{
return view('edit.game', [
'game' => $game,
'platforms' => Platform::orderBy('name')->get(),
'media' => Medium::orderBy('name')->get(),
'publishers' => Publisher::orderBy('name')->get(),
'developers' => Developer::orderBy('name')->get(),
]);
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Game $game): View
{
//TODO: ADD VALIDATION
// $request->validate([
// 'name' => 'required',
// 'game_id' => 'required',
// ]);
$game->update($request->all());
return view('model.game', ['game' => $game]);
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Game $game): RedirectResponse
{
$response = $game->delete();
if ($response === false) {
return redirect()->route('editGame', $game->id)
->with('success', false)
->with('message', 'Failed to delete game.')
;
}
return redirect()->route('getAllGames')
->with('success', true)
->with('message', 'Game successfully deleted.')
;
}
public function restore(int $id): RedirectResponse
{
$response = Game::withTrashed()->where('id', $id)->restore();
if ($response === false) {
return redirect()->route('showDeletedGames')
->with('success', false)
->with('message', 'Failed to restore game.')
;
}
return redirect()->route('showGame', $id)
->with('success', true)
->with('message', 'Game successfully restored.')
;
}
public function CheckEntryExists(string $name): bool
{
$query = Game::where('name', $name)->first();
if (null === $query) {
return false;
}
return true;
}
}
I'm using @component
because the project was started around Laravel 5.5, and I've only recently been able to pick it back up again. I didn't know it wasn't in use anymore till you mentioned it. I'll be looking into that more when I get home tonight.
@PiousVenom Minimal example should be like this:
@extends('adminlte::page')
@section('title', 'Add Game')
@section('content')
{{-- Minimal --}}
<x-adminlte-modal id="modalMin" title="Minimal"/>
{{-- Example button to open modal --}}
<x-adminlte-button label="Open Modal" data-toggle="modal" data-target="#modalMin"/>
@endsection
You can also try:
@extends('adminlte::page')
@section('title', 'Add Game')
@section('content')
{{-- Minimal --}}
<x-adminlte-modal id="modalMin" title="Minimal"/>
{{-- Example button to open modal --}}
<x-adminlte-button label="Open Modal" data-toggle="modal" data-target="#modalMin"/>
<x-adminlte-input name="game_name">
<x-slot name="prependSlot">
<div class="input-group-text">
<i class="fas fa-user text-lightblue"></i>
</div>
</x-slot>
</x-adminlte-input>
@endsection
To see if both components works.
I think the problem arises on the particular way you are including subviews and or nesting components with a non documented syntax for Laravel 8.
@Shidersz
Okay, after some major refactoring to follow this way of views, I'm still having the issue. It seems anytime I have any modal as part of my page, if i've got the x-adminlte-input
as well, it produces the error.
Here's my updated views.add.game.blade.php
:
@extends('adminlte::page')
@section('title', 'Add Game')
@section('plugins.TempusDominusBs4', true)
@section('content_header')
<section class="content-header">
<nav class="navbar navbar-green">
<div class="container-fluid">
<div class="navbar-header">
<span class="navbar-brand">
<strong>Add Game</strong>
</span>
</div>
</div>
</nav>
</section>
@stop
@section('content')
<x-modal.success></x-modal.success>
<x-modal.fail></x-modal.fail>
<div class="col-md-12">
<h1>New Game Information</h1>
<div class="gameForm" style="width: 100%;">
<form action="{{route("addNewGame")}}" method="POST" class="navbar-form navbar-left" id="newGame">
@csrf
<div class="form-group" style="padding-left:25px;">
<div class="input-group gameFormInfo row" style="width: 100%">
<h3 style="width: 90%;">Game Name:</h3>
<br>
<x-adminlte-input name="game_name">
<x-slot name="prependSlot">
<div class="input-group-text">
<i class="fas fa-user text-lightblue"></i>
</div>
</x-slot>
</x-adminlte-input>
</div>
<x-add.checkboxes.platform :platforms="$platforms"></x-add.checkboxes.platform>
<x-add.checkboxes.medium :media="$media"></x-add.checkboxes.medium>
<x-add.checkboxes.publisher :publishers="$publishers"></x-add.checkboxes.publisher>
<x-add.checkboxes.developer :developers="$developers"></x-add.checkboxes.developer>
<div class="form-group">
<h3>Release Date:</h3>
<div class="input-group gameFormInfo row" style="width: 100%">
@php
$config = ['format' => 'YYYY/MM/DD'];
@endphp
<x-adminlte-input-date name="release_date" :config="$config" placeholder="Choose a date...">
<x-slot name="appendSlot">
<div class="input-group-text bg-gradient-danger">
<i class="fas fa-calendar-alt"></i>
</div>
</x-slot>
</x-adminlte-input-date>
</div>
</div>
<button type="submit" class="loadout btn btn-default btn-block" onclick="">
Submit
</button>
</div>
</form>
</div>
</div>
@endsection
@section('css')
<link rel="stylesheet" href="{{ asset('/css/common.css') }}">
@stop
Controller has stayed the same.
I can't reproduce it locally, you should make a minimal example, as explained before, where the issue persists so I can test the same. I have even use the @component(...)
directive to include a subview with other components and all worked fine.
Just to know, do you have a Laravel 8 fresh installation or you have updated from Laravel 5.5 to 8?
@Shidersz Just wanted to start off by saying that I fully appreciate you taking the time to help me out with this.
That said, can I email you my project (minus the vendor folder)? It might be easier for you to see how it is all laid out.
Also, just for this, I'd started a brand new project from scratch, so it was a fresh install of Laravel 8.
@PiousVenom I do not have the time to check the entire project. I hope you understand me. But if you find a way to reproduce the issue on a minimal example, I will try to help you. Just create a view with an x-adminlte-modal
component, that includes another view with an x-adminlte-input
component. If that triggers the issue, then share it. Otherwise, start adding code that you think may create the issue until you found the one that conflicts.
Okay. Let's try this:
Controller/Minimal.php:
<?php
namespace App\Http\Controllers;
class Minimal extends Controller
{
public function store()
{
return view('minimal', ['success' => true]);
}
}
Views\minimal.blade.php:
@extends('adminlte::page')
@section('title', 'Dashboard')
@section('content_header')
<h1>Minimal</h1>
@stop
@section('content')
{{-- Minimal --}}
<x-adminlte-modal id="modalMin" title="Minimal"></x-adminlte-modal>
{{-- Example button to open modal --}}
<x-adminlte-button label="Open Modal" data-toggle="modal" data-target="#modalMin"></x-adminlte-button>
<form class="navbar-form navbar-left" id="minimalForm" action="{{route("addNewMinimal")}}" method="POST">
<x-adminlte-input name="game_name">
<x-slot name="prependSlot">
<div class="input-group-text">
<i class="fas fa-user text-lightblue"></i>
</div>
</x-slot>
</x-adminlte-input>
<x-adminlte-button class="btn-flat" type="submit" label="Submit" theme="success" icon="fas fa-lg fa-save"></x-adminlte-button>
</form>
@stop
My route:
Route::post('/minimal/add', [Minimal::class, 'store'])->name('addNewMinimal');
Having just like this, I get the error when I click the submit button.
@PiousVenom I made some modifications to get it work:
<?php
namespace App\Http\Controllers;
class Minimal extends Controller
{
public function store()
{
return view('minimal', ['success' => true]);
}
public function show()
{
return view('minimal');
}
}
Added a new controller method to get the view, when using http://<server-name>/minimal/get
@extends('adminlte::page')
@section('title', 'Dashboard')
@section('content_header')
<h1>Minimal</h1>
@stop
@section('content')
{{-- Minimal --}}
<x-adminlte-modal id="modalMin" title="Minimal"></x-adminlte-modal>
{{-- Example button to open modal --}}
<x-adminlte-button label="Open Modal" data-toggle="modal" data-target="#modalMin"></x-adminlte-button>
<form class="navbar-form navbar-left" id="minimalForm" action="{{route("addNewMinimal")}}" method="POST">
@csrf
<x-adminlte-input name="game_name">
<x-slot name="prependSlot">
<div class="input-group-text">
<i class="fas fa-user text-lightblue"></i>
</div>
</x-slot>
</x-adminlte-input>
<x-adminlte-button class="btn-flat" type="submit" label="Submit" theme="success" icon="fas fa-lg fa-save"></x-adminlte-button>
</form>
@stop
Added csrf field to the form.
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Minimal;
...
...
...
Route::get('/minimal/get', [Minimal::class, 'show']);
Route::post('/minimal/add', [Minimal::class, 'store'])->name('addNewMinimal');
Added a new route to access the initial view, when using http://<server-name>/minimal/get
.
So far, this worked on my environment, without csrf
field I got a expired page after submitting the form. Try adding the csrf
field, just in case. I don't believe that causes the problem, may be an issue with your Laravel project.
PHP
version you are using?composer update
at the root folder of your project?I copied your changes into my minimal
setup, and still got the same error.
To answer the questions:
vendor
folder a time or two.Let me give a brief run down of how I set up my project:
From there I just started the coding, and that's where I'm at.
Your dependencies are ok. So, to resume, when you access the minimal view, all components works fine, and the problem triggers after you press the submit button? That is really stranger...
storage/logs/laravel.log
file? Maybe there is more information about the error.Nothing in the logs is jumping out at me, other than the error:
[2021-05-25 20:04:40] local.ERROR: Undefined variable $errors (View: K:\Projects\Project Primis\GameLibrary\vendor\jeroennoten\laravel-adminlte\resources\views\components\form\input.blade.php) {"view":{"view":"K:\\Projects\\Project Primis\\GameLibrary\\vendor\\jeroennoten\\laravel-adminlte\\src/../resources/views/components/form/input.blade.php","data":{"id":"<pre class=sf-dump id=sf-dump-770524203 data-indent-pad=\" \">\"<span class=sf-dump-str title=\"9 characters\">game_name</span>\"
</pre><script>Sfdump(\"sf-dump-770524203\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","name":"<pre class=sf-dump id=sf-dump-1667128620 data-indent-pad=\" \">\"<span class=sf-dump-str title=\"9 characters\">game_name</span>\"
</pre><script>Sfdump(\"sf-dump-1667128620\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","label":"<pre class=sf-dump id=sf-dump-984312239 data-indent-pad=\" \"><span class=sf-dump-const>null</span>
</pre><script>Sfdump(\"sf-dump-984312239\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","size":"<pre class=sf-dump id=sf-dump-2077386151 data-indent-pad=\" \"><span class=sf-dump-const>null</span>
</pre><script>Sfdump(\"sf-dump-2077386151\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","igroupClass":"<pre class=sf-dump id=sf-dump-90110015 data-indent-pad=\" \"><span class=sf-dump-const>null</span>
</pre><script>Sfdump(\"sf-dump-90110015\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","labelClass":"<pre class=sf-dump id=sf-dump-925739352 data-indent-pad=\" \"><span class=sf-dump-const>null</span>
</pre><script>Sfdump(\"sf-dump-925739352\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","fgroupClass":"<pre class=sf-dump id=sf-dump-1471092582 data-indent-pad=\" \"><span class=sf-dump-const>null</span>
</pre><script>Sfdump(\"sf-dump-1471092582\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","disableFeedback":"<pre class=sf-dump id=sf-dump-1903621364 data-indent-pad=\" \"><span class=sf-dump-const>null</span>
</pre><script>Sfdump(\"sf-dump-1903621364\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","errorKey":"<pre class=sf-dump id=sf-dump-164641434 data-indent-pad=\" \">\"<span class=sf-dump-str title=\"9 characters\">game_name</span>\"
</pre><script>Sfdump(\"sf-dump-164641434\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","componentName":"<pre class=sf-dump id=sf-dump-1073467882 data-indent-pad=\" \">\"<span class=sf-dump-str title=\"14 characters\">adminlte-input</span>\"
</pre><script>Sfdump(\"sf-dump-1073467882\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","attributes":"<pre class=sf-dump id=sf-dump-740264726 data-indent-pad=\" \"><span class=sf-dump-note>Illuminate\\View\\ComponentAttributeBag</span> {<a class=sf-dump-ref>#317</a><samp data-depth=1 class=sf-dump-expanded>
#<span class=sf-dump-protected title=\"Protected property\">attributes</span>: []
</samp>}
</pre><script>Sfdump(\"sf-dump-740264726\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","makeFormGroupClass":"<pre class=sf-dump id=sf-dump-665395639 data-indent-pad=\" \"><span class=sf-dump-note>Illuminate\\View\\InvokableComponentVariable</span> {<a class=sf-dump-ref>#322</a><samp data-depth=1 class=sf-dump-expanded>
#<span class=sf-dump-protected title=\"Protected property\">callable</span>: <span class=sf-dump-note>Closure()</span> {<a class=sf-dump-ref>#302</a><samp data-depth=2 class=sf-dump-compact>
<span class=sf-dump-meta>class</span>: \"<span class=sf-dump-str title=\"Illuminate\\View\\Component
25 characters\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-class\">Illuminate\\View</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-class\">\\</span>Component</span>\"
<span class=sf-dump-meta>this</span>: <span class=sf-dump-note title=\"JeroenNoten\\LaravelAdminLte\\Components\\Form\\Input
\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">JeroenNoten\\LaravelAdminLte\\Components\\Form</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">\\</span>Input</span> {<a class=sf-dump-ref>#319</a> …}
<span class=sf-dump-meta>use</span>: {<samp data-depth=3 class=sf-dump-compact>
<span class=sf-dump-meta>$method</span>: \"<span class=sf-dump-str title=\"18 characters\">makeFormGroupClass</span>\"
</samp>}
<span class=sf-dump-meta>file</span>: \"<span class=sf-dump-str title=\"K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Component.php
97 characters\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-path\">K:\\Projects\\Project Primis\\GameLibrary\\vendor</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-path\">\\laravel\\framework\\</span>src\\Illuminate\\View\\Component.php</span>\"
<span class=sf-dump-meta>line</span>: \"<span class=sf-dump-str title=\"10 characters\">213 to 215</span>\"
</samp>}
</samp>}
</pre><script>Sfdump(\"sf-dump-665395639\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","makeInputGroupClass":"<pre class=sf-dump id=sf-dump-1284743910 data-indent-pad=\" \"><span class=sf-dump-note>JeroenNoten\\LaravelAdminLte\\Components\\Form\\InputGroupComponent::makeInputGroupClass($invalid = null)</span> {<a class=sf-dump-ref>#300</a><samp data-depth=1 class=sf-dump-expanded>
<span class=sf-dump-meta>this</span>: <span class=sf-dump-note title=\"JeroenNoten\\LaravelAdminLte\\Components\\Form\\Input
\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">JeroenNoten\\LaravelAdminLte\\Components\\Form</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">\\</span>Input</span> {<a class=sf-dump-ref>#319</a> …}
<span class=sf-dump-meta>file</span>: \"<span class=sf-dump-str title=\"K:\\Projects\\Project Primis\\GameLibrary\\vendor\\jeroennoten\\laravel-adminlte\\src\\Components\\Form\\InputGroupComponent.php
118 characters\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-path\">K:\\Projects\\Project Primis\\GameLibrary\\vendor</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-path\">\\jeroennoten\\laravel-adminlte\\</span>src\\Components\\Form\\InputGroupComponent.php</span>\"
<span class=sf-dump-meta>line</span>: \"<span class=sf-dump-str title=\"10 characters\">126 to 143</span>\"
</samp>}
</pre><script>Sfdump(\"sf-dump-1284743910\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","makeItemClass":"<pre class=sf-dump id=sf-dump-2084545441 data-indent-pad=\" \"><span class=sf-dump-note>JeroenNoten\\LaravelAdminLte\\Components\\Form\\InputGroupComponent::makeItemClass($invalid = null)</span> {<a class=sf-dump-ref>#311</a><samp data-depth=1 class=sf-dump-expanded>
<span class=sf-dump-meta>this</span>: <span class=sf-dump-note title=\"JeroenNoten\\LaravelAdminLte\\Components\\Form\\Input
\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">JeroenNoten\\LaravelAdminLte\\Components\\Form</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">\\</span>Input</span> {<a class=sf-dump-ref>#319</a> …}
<span class=sf-dump-meta>file</span>: \"<span class=sf-dump-str title=\"K:\\Projects\\Project Primis\\GameLibrary\\vendor\\jeroennoten\\laravel-adminlte\\src\\Components\\Form\\InputGroupComponent.php
118 characters\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-path\">K:\\Projects\\Project Primis\\GameLibrary\\vendor</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-path\">\\jeroennoten\\laravel-adminlte\\</span>src\\Components\\Form\\InputGroupComponent.php</span>\"
<span class=sf-dump-meta>line</span>: \"<span class=sf-dump-str title=\"10 characters\">151 to 160</span>\"
</samp>}
</pre><script>Sfdump(\"sf-dump-2084545441\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","slot":"<pre class=sf-dump id=sf-dump-1513407003 data-indent-pad=\" \"><span class=sf-dump-note>Illuminate\\Support\\HtmlString</span> {<a class=sf-dump-ref>#320</a><samp data-depth=1 class=sf-dump-expanded>
#<span class=sf-dump-protected title=\"Protected property\">html</span>: \"\"
</samp>}
</pre><script>Sfdump(\"sf-dump-1513407003\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","prependSlot":"<pre class=sf-dump id=sf-dump-568069698 data-indent-pad=\" \"><span class=sf-dump-note>Illuminate\\Support\\HtmlString</span> {<a class=sf-dump-ref>#314</a><samp data-depth=1 class=sf-dump-expanded>
#<span class=sf-dump-protected title=\"Protected property\">html</span>: \"\"\"
<span class=sf-dump-str title=\"116 characters\"><div class="input-group-text"><span class=\"sf-dump-default sf-dump-ns\">\
</span></span>
<span class=sf-dump-str title=\"116 characters\"> <i class="fas fa-user text-lightblue"></i><span class=\"sf-dump-default sf-dump-ns\">\
</span></span>
<span class=sf-dump-str title=\"116 characters\"> </div></span>
\"\"\"
</samp>}
</pre><script>Sfdump(\"sf-dump-568069698\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","__laravel_slots":"<pre class=sf-dump id=sf-dump-310706804 data-indent-pad=\" \"><span class=sf-dump-note>array:2</span> [<samp data-depth=1 class=sf-dump-expanded>
\"<span class=sf-dump-key>__default</span>\" => <span class=sf-dump-note title=\"Illuminate\\Support\\HtmlString
\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">Illuminate\\Support</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">\\</span>HtmlString</span> {<a class=sf-dump-ref>#320</a><samp data-depth=2 class=sf-dump-compact>
#<span class=sf-dump-protected title=\"Protected property\">html</span>: \"\"
</samp>}
\"<span class=sf-dump-key>prependSlot</span>\" => <span class=sf-dump-note title=\"Illuminate\\Support\\HtmlString
\"><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">Illuminate\\Support</span><span class=\"sf-dump-ellipsis sf-dump-ellipsis-note\">\\</span>HtmlString</span> {<a class=sf-dump-ref>#314</a><samp data-depth=2 class=sf-dump-compact>
#<span class=sf-dump-protected title=\"Protected property\">html</span>: \"\"\"
<span class=sf-dump-str title=\"116 characters\"><div class="input-group-text"><span class=\"sf-dump-default sf-dump-ns\">\
</span></span>
<span class=sf-dump-str title=\"116 characters\"> <i class="fas fa-user text-lightblue"></i><span class=\"sf-dump-default sf-dump-ns\">\
</span></span>
<span class=sf-dump-str title=\"116 characters\"> </div></span>
\"\"\"
</samp>}
</samp>]
</pre><script>Sfdump(\"sf-dump-310706804\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
"}},"exception":"[object] (Facade\\Ignition\\Exceptions\\ViewException(code: 0): Undefined variable $errors (View: K:\\Projects\\Project Primis\\GameLibrary\\vendor\\jeroennoten\\laravel-adminlte\
esources\\views\\components\\form\\input.blade.php) at K:\\Projects\\Project Primis\\GameLibrary\\vendor\\jeroennoten\\laravel-adminlte\\src/../resources/views/components/form/input.blade.php:7)
[stacktrace]
#0 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\jeroennoten\\laravel-adminlte\\src/../resources/views/components/form/input.blade.php(7): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Undefined varia...', 'K:\\\\Projects\\\\Pro...', 5)
#1 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(107): require('K:\\\\Projects\\\\Pro...')
#2 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#3 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('K:\\\\Projects\\\\Pro...', Array)
#4 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('K:\\\\Projects\\\\Pro...', Array)
#5 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\facade\\ignition\\src\\Views\\Engines\\CompilerEngine.php(37): Illuminate\\View\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#6 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(139): Facade\\Ignition\\Views\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#7 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(122): Illuminate\\View\\View->getContents()
#8 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(91): Illuminate\\View\\View->renderContents()
#9 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesComponents.php(89): Illuminate\\View\\View->render()
#10 K:\\Projects\\Project Primis\\GameLibrary\
esources\\views/minimal.blade.php(51): Illuminate\\View\\Factory->renderComponent()
#11 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(107): require('K:\\\\Projects\\\\Pro...')
#12 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#13 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('K:\\\\Projects\\\\Pro...', Array)
#14 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('K:\\\\Projects\\\\Pro...', Array)
#15 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\facade\\ignition\\src\\Views\\Engines\\CompilerEngine.php(37): Illuminate\\View\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#16 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(139): Facade\\Ignition\\Views\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#17 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(122): Illuminate\\View\\View->getContents()
#18 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(91): Illuminate\\View\\View->renderContents()
#19 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(69): Illuminate\\View\\View->render()
#20 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#21 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(793): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 200, Array)
#22 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(763): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\View\\View))
#23 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(695): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\View\\View))
#24 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#25 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(103): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#29 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(55): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#30 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#34 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#35 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#36 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#37 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#38 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\fruitcake\\laravel-cors\\src\\HandleCors.php(52): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Fruitcake\\Cors\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\fideloper\\proxy\\src\\TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 K:\\Projects\\Project Primis\\GameLibrary\\public\\index.php(59): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 K:\\Projects\\Project Primis\\GameLibrary\\server.php(21): require_once('K:\\\\Projects\\\\Pro...')
#57 {main}
[previous exception] [object] (ErrorException(code: 0): Undefined variable $errors at K:\\Projects\\Project Primis\\GameLibrary\\storage\\framework\\views\\18d16607b1ccb6d8ad5f76d3bcfa1604624362eb.php:5)
[stacktrace]
#0 K:\\Projects\\Project Primis\\GameLibrary\\storage\\framework\\views\\18d16607b1ccb6d8ad5f76d3bcfa1604624362eb.php(5): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Undefined varia...', 'K:\\\\Projects\\\\Pro...', 5)
#1 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(107): require('K:\\\\Projects\\\\Pro...')
#2 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#3 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('K:\\\\Projects\\\\Pro...', Array)
#4 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('K:\\\\Projects\\\\Pro...', Array)
#5 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\facade\\ignition\\src\\Views\\Engines\\CompilerEngine.php(37): Illuminate\\View\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#6 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(139): Facade\\Ignition\\Views\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#7 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(122): Illuminate\\View\\View->getContents()
#8 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(91): Illuminate\\View\\View->renderContents()
#9 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesComponents.php(89): Illuminate\\View\\View->render()
#10 K:\\Projects\\Project Primis\\GameLibrary\\storage\\framework\\views\\af5f6878db28abab5cb2c56c57599f332f67d0c2.php(51): Illuminate\\View\\Factory->renderComponent()
#11 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(107): require('K:\\\\Projects\\\\Pro...')
#12 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#13 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('K:\\\\Projects\\\\Pro...', Array)
#14 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Engines\\CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('K:\\\\Projects\\\\Pro...', Array)
#15 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\facade\\ignition\\src\\Views\\Engines\\CompilerEngine.php(37): Illuminate\\View\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#16 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(139): Facade\\Ignition\\Views\\Engines\\CompilerEngine->get('K:\\\\Projects\\\\Pro...', Array)
#17 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(122): Illuminate\\View\\View->getContents()
#18 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(91): Illuminate\\View\\View->renderContents()
#19 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(69): Illuminate\\View\\View->render()
#20 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#21 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(793): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 200, Array)
#22 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(763): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\View\\View))
#23 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(695): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\View\\View))
#24 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#25 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(103): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#29 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(55): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#30 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#34 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#35 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#36 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#37 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#38 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\fruitcake\\laravel-cors\\src\\HandleCors.php(52): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Fruitcake\\Cors\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\fideloper\\proxy\\src\\TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(167): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 K:\\Projects\\Project Primis\\GameLibrary\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 K:\\Projects\\Project Primis\\GameLibrary\\public\\index.php(59): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 K:\\Projects\\Project Primis\\GameLibrary\\server.php(21): require_once('K:\\\\Projects\\\\Pro...')
#57 {main}
"}
@PiousVenom Ok, I think I know what is happening, you have no $errors
bag available. Not sure why that is happening, it should be available on the internal laravel session. This did not happen before. Try next fix:
Edit file vendor/jeroennoten/laravel-adminlte/resources/views/components/form/input.blade.php
and change it like this:
@extends('adminlte::components.form.input-group-component')
@section('input_group_item')
{{-- Input --}}
<input id="{{ $id }}" name="{{ $name }}"
{{ $attributes->merge(['class' => $makeItemClass(isset($errors) ? $errors->first($errorKey) : false)]) }}>
@overwrite
You may need to implement this fix on other components, replacing
$errors->first($errorKey)
by
isset($errors) ? $errors->first($errorKey) : false
Tell me if this fixes your problem. So I can work on a security fix for this...
@Shidersz
This did work for me. Thank you very much.
@PiousVenom Nice, I will create a fix for this soon. Usually, the Laravel session has and error bag (instance of Illuminate\Support\MessageBag
) called errors
. For some strange reason you do not have it...
An $errors variable is shared with all of your application's views by the Illuminate\View\Middleware\ShareErrorsFromSession middleware, which is provided by the web middleware group. When this middleware is applied an $errors variable will always be available in your views, allowing you to conveniently assume the $errors variable is always defined and can be safely used. The $errors variable will be an instance of Illuminate\Support\MessageBag
Maybe, you have forgotten to use the web middleware group...
More information is available here: https://laravel.com/docs/8.x/validation#quick-displaying-the-validation-errors
Maybe, you have forgotten to use the web middleware group...
More information is available here: https://laravel.com/docs/8.x/validation#quick-displaying-the-validation-errors
I admit, I'm not 100% what you mean by that. All my routes are wrapped in:
Route::middleware(['web'])->group(function () {
//
});
Is there more to it than that?
Based on they documentation, that middleware should be automatically loaded if you write the routes on the routes/web.php
file. Read here. I just wanted to note that there is some strange in your framework, but you can omit this. I will create a fix to ensure $errors
is set before inspecting it.
Based on they documentation, that middleware should be automatically loaded if you write the routes on the
routes/web.php
file. Read here. I just wanted to note that there is some strange in your framework, but you can omit this. I will create a fix to ensure$errors
is set before inspecting it.
Thanks again for your help. I just wish I knew what I'd done wrong for it to not work. I've been following the Laravel and Laravel-AdminLTE as much as humanly possible.
Describe the bug
I'm returning a
view
from my controller:Inside my view, I have a check that I'd thought would display a modal:
However, on submission, I receive the error:
Undefined variable: errors (View: \vendor\jeroennoten\laravel-adminlte\resources\views\components\form\input.blade.php)
If I remove everything inside the
@if (isset($success))
, the return to the view will obviously work.Expected behavior
I'd expect that the modal would display.
Environment
Complete the next environment information.