| @@ 845-852 (lines=8) @@ | ||
| 842 | * |
|
| 843 | * @return $this |
|
| 844 | */ |
|
| 845 | public function belongsTo($selectable) |
|
| 846 | { |
|
| 847 | if (method_exists($selectable, 'display')) { |
|
| 848 | $this->display($selectable::display()); |
|
| 849 | } |
|
| 850 | ||
| 851 | return $this->displayUsing(Grid\Displayers\BelongsTo::class, [$selectable]); |
|
| 852 | } |
|
| 853 | ||
| 854 | /** |
|
| 855 | * @param string $selectable |
|
| @@ 859-866 (lines=8) @@ | ||
| 856 | * |
|
| 857 | * @return $this |
|
| 858 | */ |
|
| 859 | public function belongsToMany($selectable) |
|
| 860 | { |
|
| 861 | if (method_exists($selectable, 'display')) { |
|
| 862 | $this->display($selectable::display()); |
|
| 863 | } |
|
| 864 | ||
| 865 | return $this->displayUsing(Grid\Displayers\BelongsToMany::class, [$selectable]); |
|
| 866 | } |
|
| 867 | ||
| 868 | /** |
|
| 869 | * Upload file. |
|