Helen is a premium package,
get your license here
helen allows you to connect the new links with it's related model. to enable that, add the trait to your model:
Note
Currently thelinkable
will be stored automatically when using the actionShortUrlAction
1use LaraZeus\Helen\Models\Concerns\ShortLinks;
there is two methods:
the name attribute:
this is the name to show in the table for the related model
1public static function getLabelKey(): string2{3 return 'name';4}
the related model title:
this is the name to show in the table for the related model
1public static function getTitle(): string2{3 return 'Posts';4}