| @@ 824-831 (lines=8) @@ | ||
| 821 | * |
|
| 822 | * @return $this |
|
| 823 | */ |
|
| 824 | public function belongsTo($selectable) |
|
| 825 | { |
|
| 826 | if (method_exists($selectable, 'display')) { |
|
| 827 | $this->display($selectable::display()); |
|
| 828 | } |
|
| 829 | ||
| 830 | return $this->displayUsing(Grid\Displayers\BelongsTo::class, [$selectable]); |
|
| 831 | } |
|
| 832 | ||
| 833 | /** |
|
| 834 | * @param string $selectable |
|
| @@ 838-845 (lines=8) @@ | ||
| 835 | * |
|
| 836 | * @return $this |
|
| 837 | */ |
|
| 838 | public function belongsToMany($selectable) |
|
| 839 | { |
|
| 840 | if (method_exists($selectable, 'display')) { |
|
| 841 | $this->display($selectable::display()); |
|
| 842 | } |
|
| 843 | ||
| 844 | return $this->displayUsing(Grid\Displayers\BelongsToMany::class, [$selectable]); |
|
| 845 | } |
|
| 846 | ||
| 847 | /** |
|
| 848 | * If has display callbacks. |
|