mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-22 22:13:57 +00:00
36 lines
662 B
PHP
36 lines
662 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: mhmj
|
|
* Date: 22/05/2019
|
|
* Time: 11:35 AM
|
|
*/
|
|
|
|
namespace App\Classes\Modules\Warehouses\Services;
|
|
|
|
use App\Models\Warehouse;
|
|
use App\Http\Resources\Warehouse as WarehouseResource;
|
|
|
|
class ProfilesWarehouse
|
|
{
|
|
/** @var Warehouse */
|
|
private $repository;
|
|
|
|
/**
|
|
* ProfilesWarehouse constructor.
|
|
* @param Warehouse $repository
|
|
*/
|
|
public function __construct(Warehouse $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function execute(String $id){
|
|
|
|
$warehouse = $this->repository->findOrFail($id);
|
|
|
|
return new WarehouseResource($warehouse);
|
|
|
|
}
|
|
|
|
} |