classes/Models/Base.php
protected function makeEditAction($data)
    {
        extract($data);

        // Make markup
        $editable = app('decoy.user')->can('update', $controller);
        return sprintf('<a href="%s" class="action-edit js-tooltip"
            data-placement="left" title="%s">
                <span class="glyphicon glyphicon-%s"></span>
            </a>',
            $this->getAdminEditUri($controller, $many_to_many), // URL
            $editable ? // Label
                __('decoy::base.action.edit') :
                __('decoy::base.action.read') ,
            $editable ? 'pencil' : 'zoom-in' // Icon
        );
    }
protected function makeEditAction($data)
    {
        extract($data);

        // Make markup
        $editable = app('decoy.user')->can('update', $controller);
        return sprintf('<a href="%s" class="action-edit js-tooltip"
            data-placement="left" title="%s">
                <span class="glyphicon glyphicon-%s"></span>
            </a>',
            $this->getAdminEditUri($controller, $many_to_many), // URL
            $editable ? // Label
                __('decoy::base.action.edit') :
                __('decoy::base.action.read') ,
            $editable ? 'pencil' : 'zoom-in' // Icon
        );
    }
protected function makeEditAction ( $ data ) { extract ( $ data ) ; // Make markup $ editable = app ( 'decoy.user' ) -> can ( 'update' , $ controller ) ; return sprintf ( '<a href="%s" class="action-edit js-tooltip"
            data-placement="left" title="%s">
                <span class="glyphicon glyphicon-%s"></span>
            </a>' , $ this -> getAdminEditUri ( $ controller , $ many_to_many ) , // URL $ editable ? // Label __ ( 'decoy::base.action.edit' ) : __ ( 'decoy::base.action.read' ) , $ editable ? 'pencil' : 'zoom-in' // Icon ) ; }
Make the edit or view action.

@param  array  $data The data passed to a listing view
@return string
Make the edit or view action .