Lara-Crud

Package for quick deployment admin panel on Laravel

Determines the number of characters displayed in the table, in which case the string ends. The call works only in the showDisplay() method


$this->textLimit(string $field, int $var)

Example: $this->textLimit('description',25);

namespace App\Http\Node;

    use Trafik8787\LaraCrud\Contracts\NodeInterface;
    use Trafik8787\LaraCrud\Models\NodeModelConfiguration;
    
    class Article extends NodeModelConfiguration implements NodeInterface {
    
    
        public function showDisplay ()
        {
            $this->textLimit('description', 25);
            
            ....
        }