public function edit(Request $request)
    {
        return Admin::content(function (Content $content) use ($request) {
            $connection = $request->get('conn', 'default');

            $manager = $this->manager();

            $variables = [
                'conn'        => $connection,
                'info'        => $manager->getInformation(),
                'connections' => $manager->getConnections(),
                'data'        => $manager->fetch($request->get('key')),
            ];

            if (empty($variables['data'])) {
                $view = 'laravel-admin-redis-manager::edit.nil';
            } else {
                $view = 'laravel-admin-redis-manager::edit.'.$variables['data']['type'];
            }

            $content->header('Redis manager');
            $content->description('Connections');
            $content->breadcrumb(
                ['text' => 'Redis manager', 'url' => route('redis-index', ['conn' => $connection])],
                ['text' => 'Edit']
            );
            $content->body(view($view, $variables));
        });
    }
public function edit(Request $request)
    {
        return Admin::content(function (Content $content) use ($request) {
            $connection = $request->get('conn', 'default');

            $manager = $this->manager();

            $variables = [
                'conn'        => $connection,
                'info'        => $manager->getInformation(),
                'connections' => $manager->getConnections(),
                'data'        => $manager->fetch($request->get('key')),
            ];

            if (empty($variables['data'])) {
                $view = 'laravel-admin-redis-manager::edit.nil';
            } else {
                $view = 'laravel-admin-redis-manager::edit.'.$variables['data']['type'];
            }

            $content->header('Redis manager');
            $content->description('Connections');
            $content->breadcrumb(
                ['text' => 'Redis manager', 'url' => route('redis-index', ['conn' => $connection])],
                ['text' => 'Edit']
            );
            $content->body(view($view, $variables));
        });
    }
public function edit ( Request $ request ) { return Admin :: content ( function ( Content $ content ) use ( $ request ) { $ connection = $ request -> get ( 'conn' , 'default' ) ; $ manager = $ this -> manager ( ) ; $ variables = [ 'conn' => $ connection , 'info' => $ manager -> getInformation ( ) , 'connections' => $ manager -> getConnections ( ) , 'data' => $ manager -> fetch ( $ request -> get ( 'key' ) ) , ] ; if ( empty ( $ variables [ 'data' ] ) ) { $ view = 'laravel-admin-redis-manager::edit.nil' ; } else { $ view = 'laravel-admin-redis-manager::edit.' . $ variables [ 'data' ] [ 'type' ] ; } $ content -> header ( 'Redis manager' ) ; $ content -> description ( 'Connections' ) ; $ content -> breadcrumb ( [ 'text' => 'Redis manager' , 'url' => route ( 'redis-index' , [ 'conn' => $ connection ] ) ] , [ 'text' => 'Edit' ] ) ; $ content -> body ( view ( $ view , $ variables ) ) ; } ) ; }
Edit page.

@param Request $request

@return Content
Edit page .