mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Aggiornamento importazione FE
This commit is contained in:
@@ -22,12 +22,16 @@ class Manager
|
||||
*/
|
||||
public function __construct($resource, $type, $version)
|
||||
{
|
||||
$resource = Resource::where('version', $version)
|
||||
$object = Resource::where('version', $version)
|
||||
->where('type', $type)
|
||||
->where('resource', $resource)
|
||||
->first();
|
||||
|
||||
$this->resource = $resource;
|
||||
if (empty($object)) {
|
||||
throw new ResourceNotFound();
|
||||
}
|
||||
|
||||
$this->resource = $object;
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user