Migrate HickLab3D dashboard and add production auto deployment
Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 19s
Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 19s
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\Bambuddy;
|
||||
use Illuminate\View\View;
|
||||
use Throwable;
|
||||
|
||||
class BambuddyController extends Controller
|
||||
{
|
||||
public function __invoke(Bambuddy $bambuddy): View
|
||||
{
|
||||
$printers = [];
|
||||
$integrationError = null;
|
||||
|
||||
try {
|
||||
$printers = $bambuddy->printers();
|
||||
} catch (Throwable $exception) {
|
||||
report($exception);
|
||||
$integrationError = 'BamBuddy is unavailable. Check its API key and connection.';
|
||||
}
|
||||
|
||||
return view('printers.index', compact('printers', 'integrationError'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user