20 lines
431 B
PHP
20 lines
431 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Staff;
|
|
|
|
use App\Http\Controllers\HashidControllerBase;
|
|
use App\Models\Study;
|
|
|
|
class StudyViewerController extends HashidControllerBase
|
|
{
|
|
public function stone()
|
|
{
|
|
$this->decodeKeys();
|
|
$study = Study::findOrFail($this->key);
|
|
$url = $study->getStoneLink();
|
|
abort_if(blank($url), 404);
|
|
|
|
return view('staff.studies.viewer', compact('url'));
|
|
}
|
|
}
|