Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ahmed312's avatar

Using Annotator js with laravel

Hi, I was trying to store annotations (annotator js) into my mysql database, but the routes are causing problem in laravel.

I am sending the annotations through this jquery code:

var content = $('#content').annotator();
 content.annotator('addPlugin', 'Store', {
    // The endpoint of the store on your server.
     prefix: '/list/annotations',
 });

and my route is

Route::post('list/annotations', 'TargetsController@xyz');

But somehow the controller function is not being called. Any help plz, stuck in this since 4 days. thanks

0 likes
0 replies

Please or to participate in this conversation.