Display the specified resource.

@param  int  $id
@return Response
13765
public function show($id)
    {
        return $this->patientAdapter->toOutput( $this->patientRepository->find()->byPid( $id ) );
    }
810520
public function show($id) {
        if ($this->model->display_the_view_button)
        {
            return view('formhandling::adminformhandling/' . config('lasallecmsadmin.admin_template_name') . '/show',
                [
                    'display_the_view_button'      => $this->model->display_the_view_button,
                    'repository'                   => $this->repository,
                    'record'                       => $this->repository->getFind($id),
                    'package_title'                => $this->model->package_title,
                    'table_name'                   => $this->model->table,
                    'model_class'                  => $this->model->model_class,
                    'resource_route_name'          => $this->model->resource_route_name,
                    'field_list'                   => $this->getFieldList(),
                    'namespace_formprocessor'      => $this->model->namespace_formprocessor,
                    'classname_formprocessor_update' => $this->model->classname_formprocessor_update,
                    'DatesHelper'                  => DatesHelper::class,
                    'HTMLHelper'                   => HTMLHelper::class,
                    'carbon'                       => Carbon::class,
                    'Config'                       => Config::class,
                    'Form'                         => Form::class,
                    'Crypt'                        => Crypt::class,
                ]);

        } else {
            return Redirect::route('admin.'.$this->model->resource_route_name.'.index');
        }
    }
1213219
public function getAction($id)
    {
        $view = $this->responseGetById(
            $id,
            function($id) {
                return $this->getDoctrine()
                    ->getRepository(self::$entityName)
                    ->find($id);
            }
        );

        return $this->handleView($view);
    }
1064303
public function show($id)
    {
        $todolist = $this->client->get(
            sprintf('buckets/%d/todolists/%d.json', $this->bucket, $id)
        );

        return new TodoList($this->response($todolist));
    }
110133
public function show($id)
    {
        $component = $this->component($id)->templateLayout();
        $html      = $component->__toString();
        if (!strlen($html)) {
            return $component->render();
        }
        return $html;
    }
242217
public function show($id)
    {
        $filters = [];
//        // handle permission
//        $filters = $this->handlePermission(__FUNCTION__);

        // Create Response Model
        $response = new ResponseModel();

        // try to get data
        try {
            $response->setMessage($this->getTrans('show', 'successful'));

            // add filter to get desired record
            array_push($filters,
                [$this->model->getKeyName(), '=', $id]
            );
            $data = $this->model
                ->where($filters)
                ->get();
            $response->setData($data);

            // catch exception
        } catch (Exception $exception) {
            $response->setError($exception->getCode());
            $response->setMessage($this->getTrans('show', 'failed'));
            $response->setStatus(false);
            if (env('APP_DEBUG', false)) {
                $response->setData(collect($exception->getMessage()));
            }
        }
        return SmartResponse::response($response);
    }
302802
public function view($id)
    {
        $this->builder->setMode(Builder::MODE_VIEW);
        $this->builder->setResourceId($id);

        $this->setFieldValue($id);

        return $this;
    }
372541
public function show($id)
    {
        $question = $this->client->get(
            sprintf('buckets/%d/questions/%d.json', $this->bucket, $id)
        );

        return new Question($this->response($question));
    }
651326
public function show($id)
    {
        $modelName = $this->modelFullName;
        $model = $modelName::find($id);
        if(!$model) throw new NotFoundException('There is no Resource with id = ' . $id . ' !');
        return $model;
    }
1129449
public function show($id)
    {
        $projectConstructions = $this->client->get(
            sprintf('templates/%d/project_constructions/%d.json', $this->parent, $id)
        );

        return $this->response($projectConstructions);
    }
555956
public function show(Request $request, $id)
    {
        try{
            $tag = $request->user()->tags()->where('id', $id)->firstOrFail();
            $results = fractal()->item($tag, new TagTransformer());
            return response()->json($results);
        }catch (\Exception $e){
            return response()->json([ 'error' => 404, 'message' => 'Not found' ], 404);
        }

    }
792801
public function view($id)
    {
        $file = LocalFile::getByIdentifier($id);

        $response = response($file->getContents(), 200)->withHeaders([
            'Content-Type'  => $file->getFile()->getMimeType(),
            'Cache-Control' => 'max-age=86400, public',
            'Expires'       => Carbon::now()->addSeconds(86400)->format('D, d M Y H:i:s \G\M\T')
        ]);
        return $response;
    }
812272
public function show($id)
    {
        // get user by id
        $user = AppUser::find($id);

        if (!$user) {
            return response()->json(null, 404);
        }

        return response()->json(arrayView('phpsoft.users::user/read', [
            'user' => $user
        ]), 200);
    }
954374
public function showAction(Request $request, $id = 1)
    {

        $resource = $this->findOr404('find', array($id));

        $this->dispatch(Actions::SHOW, $resource);

        return $this->render($this->getFromConfig($request, 'template', true), array(
            $this->name => $resource
        ));
    }
1144462
public function preview($id)
	{
		if ( ! $this->auth->check())
		{
			return App::abort(404, 'Page not found');
		}

		return View::make($this->theme.'.preview', array('id' => $id));
	}
4502
public function actionView(int $id)
    {
        $model = $this->findModel($id);

        return $this->render('view', [
            'model' => $model,
            'usernameField' => $this->usernameField,
        ]);
    }
802979
public function show($id)
    {
        $project = $this->client->get(sprintf('projects/%d.json', $id));

        return new Project($this->response($project));
    }