Open ltib91 opened 7 months ago
I get the same problem. Any luck resolving it?
@ap1969 I used for Product, here is my working solution:
Product Controller:
protected function setupEditorRoutes($segment, $routeName, $controller) {
Route::get($segment.'/{id}/editor', [
'as' => $routeName.'.editor',
'uses' => $controller.'@editor',
'operation' => 'editor',
]);
}
public function editor(Request $request) {
$product = Product::find($request->id);
return $this->show_gjs_editor($request, $product);
}
Product Model:
public function getKeyValue(){
return $this->id;
}
Hi,
I am getting this error, doing everything like in the readme instructions.
Illuminate\Routing\Exceptions\UrlGenerationException Missing required parameter for [Route: laravel-grapesjs.model.templates] [URI: laravel-grapesjs/{model}/{editable}/templates] [Missing parameter: editable].