Make a show builder.

@param mixed $id

@return Show
337708
protected function detail($id)
    {
        $roleModel = config('admin.database.roles_model');

        $show = new Show($roleModel::findOrFail($id));

        $show->id('ID');
        $show->slug(trans('admin.slug'));
        $show->name(trans('admin.name'));
        $show->permissions(trans('admin.permissions'))->as(function ($permission) {
            return $permission->pluck('name');
        })->label();
        $show->created_at(trans('admin.created_at'));
        $show->updated_at(trans('admin.updated_at'));

        return $show;
    }
606225
public function show($id)
    {
        $user = UserRepository::find($id);
        $this->checkUser($user);

        if ($user->activated_at) {
            $activated = html_ago($user->activated_at);
        } else {
            if (Credentials::hasAccess('admin') && Config::get('credentials.activation')) {
                $activated = 'No - <a href="#resend_user" data-toggle="modal" data-target="#resend_user">Resend Email</a>';
            } else {
                $activated = 'Not Activated';
            }
        }

        if (Credentials::getThrottleProvider()->findByUserId($id)->isSuspended()) {
            $suspended = 'Currently Suspended';
        } else {
            $suspended = 'Not Suspended';
        }

        $groups = $user->getGroups();
        if (count($groups) >= 1) {
            $data = [];
            foreach ($groups as $group) {
                $data[] = $group->name;
            }
            $groups = implode(', ', $data);
        } else {
            $groups = 'No Group Memberships';
        }

        return View::make('credentials::users.show', compact('user', 'groups', 'activated', 'suspended'));
    }
1201445
public function show($id)
    {
        $queue = Queue::findOrFail($id);

        return view('eyewitness::queue.show')->withEye(app(Eye::class))
                                             ->withQueue($queue)
                                             ->withTransformer(new ChartTransformer);
    }
1032421
public function show($id)
    {
        $item = $this->service->single($id);

        return $this->response()->item($item, $this->transformer);
    }
425716
public function showAction($id)
    {
        $this->initializeScaffolding();

        $this->beforeRead();
        $this->view->record = $this->scaffolding->doRead($id);
        $this->view->fields = $this->showFields;
        $this->afterRead();
    }
405783
public function show($id)
    {
        $schedule = $this->client->get(
            sprintf('buckets/%d/schedules/%d.json', $this->bucket, $id)
        );

        return new Schedule($this->response($schedule));
    }
1141378
public function show($id)
    {
        $scheduler = Scheduler::findOrFail($id);

        return view('eyewitness::scheduler.show')->withEye(app(Eye::class))
                                                 ->withScheduler($scheduler)
                                                 ->withHistories($scheduler->history()->simplePaginate(config('eyewitness.pagination_size', 50)))
                                                 ->withTransformer(new ChartTransformer);
    }
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');
        }
    }
1224147
public function actionShow($id)
    {
        $profile = $this->finder->findProfileById($id);

        if ($profile === null) {
            throw new NotFoundHttpException();
        }

        return $this->render('show', [
            'profile' => $profile,
        ]);
    }
595463
public function show($id)
    {
        $item = $this->repo->getById($id);

        if ( ! $item)
        {
            return $this->respondNotFound();
        }

        $resource = new Fractal\Resource\Item($item, new $this->transformerClass);
        return $this->fractal->createData($resource)->toArray();
    }
1225766
public function show($id)
    {
        $messageBoard = $this->client->get(
            sprintf('buckets/%d/message_boards/%d.json', $this->bucket, $id)
        );

        return new MessageBoard($this->response($messageBoard));
    }
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);
    }
534066
public function actionView($id)
    {
        $model = $this->findModel($id);
        $model->updateCounters(['views' => 1]);
        return $this->render($model->view, [
            'model' => $model,
        ]);
    }
127102
public function show($id)
    {
        $lists      = $this->mailjet->getAllLists();
        $newsletter = $this->newsletter->find($id);

        return view('newsletter::Backend.template.show')->with(['newsletter' => $newsletter, 'lists' => $lists]);
    }
876927
public function show($id)
    {
        $lists = $this->list->getAll();
        $list  = $this->list->find($id);

        return view('newsletter::Backend.lists.emails')->with(['lists' => $lists, 'list' => $list]);
    }
584610
public function getPostShow($id)
    {
        $title      = "Inlägg";
        $text       = new ShowOneService($this->di, $id);

        $data = [
            "items" => $text->getHTML(),
        ];

        $crud = "comm/crud/view-one";
        $this->toRender($title, $crud, $data);
    }
559037
public function edit($id)
    {
        $data['data'] = $this->config->getModel()::findOrFail($id);
        $data['app'] = $this->config->tabbable($data['data']);

        $validator = JsValidator::make($this->config->getValid($id));
        View::share('validator', $validator);

        return view('larrock::admin.admin-builder.edit', $data);
    }