Пример #1
0
 /**
  * Display the specified resource.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function show($id)
 {
     // Get the resource if it has not been provided by the child class
     if (!$this->resource->getKey()) {
         $this->resource = $this->resource->findOrFail($id);
     }
     $this->layout->subtitle = _('Details');
     return $this->loadView(__FUNCTION__, $this->resource->getVisibleLabels());
 }