Commit d2e19658 authored by Home's avatar Home

Initial bug fix to move to Laravel 5.7.x

parent 8164d5f8
......@@ -27,8 +27,9 @@ class AnalogController extends Controller
foreach ($this->books as $key => $book)
{
$request = Request::create('iba/analog/' . $book . '/dashboard/', 'GET');
$response = Route::dispatch($request);
$response = app()->handle($request);
$books[$key] = json_decode($response->content());
}
return view('iba::index', compact('books'));
}
......
......@@ -25,7 +25,7 @@
<tr>
<td>{{ $item->id }}</td>
<td><a href="/iba/analog/{{ $type }}/{{ $item->id }}/edit/">{{ $item->title->value }}</a></td>
<td>{{ $item->timestamp->publish or '' }}</td>
<td>{{ $item->timestamp->publish ?? '' }}</td>
</tr>
@endforeach
</tbody>
......
......@@ -4,28 +4,28 @@
<div class="os-form-group">
@if (in_array('title', $book->dimensions))
<label class="label">Title: </label>
<input class="form-control" name="title" type="text" class="pure-input-1 form-control" placeholder="Title" value="{{ $book->title->value or ''}}">
<input class="form-control" name="title" type="text" class="pure-input-1 form-control" placeholder="Title" value="{{ $book->title->value ?? ''}}">
@endif
</div>
<div class="os-form-group">
@if (in_array('subtitle', $book->dimensions))
<label class="label">Subtitle: </label>
<input class="form-control" name="subtitle" type="text" class="pure-input-1 form-control" placeholder="Subtitle" value="{{ $book->subtitle->value or ''}}">
<input class="form-control" name="subtitle" type="text" class="pure-input-1 form-control" placeholder="Subtitle" value="{{ $book->subtitle->value ?? ''}}">
@endif
</div>
<div class="os-form-group">
@if (in_array('slug', $book->dimensions))
<label class="label">Slug</label>
<input class="form-control" name="slug" type="text" class="pure-input-1 form-control" placeholder="Slug" value="{{ $book->slug->value or ''}}">
<input class="form-control" name="slug" type="text" class="pure-input-1 form-control" placeholder="Slug" value="{{ $book->slug->value ?? ''}}">
@endif
</div>
<div class="os-form-group">
@if (in_array('description', $book->dimensions))
<label class="label">Description: </label>
<textarea name="description" class="pure-input-1 form-control" type="text" placeholder="Description">{{ $book->description->value or '' }}</textarea>
<textarea name="description" class="pure-input-1 form-control" type="text" placeholder="Description">{{ $book->description->value ?? '' }}</textarea>
@endif
</div>
</div>
......
......@@ -3,10 +3,10 @@
<label class="c-card__item c-card__item--divider" for="accordion-2">Thumbnail</label>
<div class="pure-group c-card__item">
<input class="form-control" placeholder="location of file" class="form-control" type="text" name="thumbnail[path]" value="{{ $book->thumbnail->path or '' }}">
<input class="form-control" placeholder="File name" class="form-control" type="text" name="thumbnail[name]" value="{{ $book->thumbnail->name or '' }}">
<input class="form-control" placeholder="Photographer" class="form-control" type="text" name="thumbnail[photographer]" value="{{ $book->thumbnail->photographer or '' }}">
<input class="form-control" placeholder="Link to photographer's profile" class="form-control" type="text" name="thumbnail[link]" value="{{ $book->thumbnail->link or '' }}">
<input class="form-control" placeholder="location of file" class="form-control" type="text" name="thumbnail[path]" value="{{ $book->thumbnail->path ?? '' }}">
<input class="form-control" placeholder="File name" class="form-control" type="text" name="thumbnail[name]" value="{{ $book->thumbnail->name ?? '' }}">
<input class="form-control" placeholder="Photographer" class="form-control" type="text" name="thumbnail[photographer]" value="{{ $book->thumbnail->photographer ?? '' }}">
<input class="form-control" placeholder="Link to photographer's profile" class="form-control" type="text" name="thumbnail[link]" value="{{ $book->thumbnail->link ?? '' }}">
</div>
</div>
@endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment