laravel nova card duplicate keys

Solutions on MaxInterview for laravel nova card duplicate keys by the best coders in the world

showing results for - "laravel nova card duplicate keys"
Noha
15 Sep 2019
1// Pass parameter in the NovaServiceProvider
2 (new ShareCard('MT'))->canSee(function ($request) { return true; }),
3
4// Set key in the __construct;
5class ShareCard extends Card {
6  	public $width = '1/3';
7
8    public function __construct($stock) {
9        parent::__construct();
10
11        $this->withMeta(['uriKey' => $stock]);
12        $this->withMeta(['setTitle' => 'Single Share' ]);
13        $this->withMeta(['model' => 'i3\ExchangeStock']);
14        $this->withMeta(['selectColumns' => ['id','json','name','bid_price','ask_price','last_price'] ]);
15        $this->withMeta(['usingWhere' => (object) [ 
16                                            "name_short"=>$stock
17                                            ] ]);
18        $this->withMeta(['groupBy' => [] ]);
19        $this->key  = $stock;
20    }
21 
22}
Carlos
09 Mar 2016
1[Vue warn]: Duplicate keys detected: 'my-custom-card.undefined'. This may cause an update error.
2
3found in
4
5---> <Cards> at resources/js/components/Cards.vue
6       <Dashboard> at resources/js/views/Dashboard.vue
7         <Root>
8