Coder Social home page Coder Social logo

Comments (5)

 avatar commented on August 20, 2024 1

Issue resolved, see release # 3.2.1

from laravel-grapesjs.

 avatar commented on August 20, 2024

Hi @insssomniac, The issue is not clear. Can you please provide the code or any screenshots?

from laravel-grapesjs.

insssomniac avatar insssomniac commented on August 20, 2024

Okay, i try to write something like "steps to reproduce" because just code will be not clear also.

  1. Install laravel, create the Page model and implement this jd-dotlogics/laravel-grapesjs module to it. Also it is make sense to add some other basic fields like "name" and "slug" and basic CRUD controller with which we can edit the "name" and "slug", and also we can edit html in the editor.
  2. Install altek/accountant to the project. After this we will have entries in the database as soon as someone changes the page.

Problem is what if someone changing regular fields like "name" or "slug" (post request from the form in "edit" view to the "update" action in controller) -- we have his user id and type, but if this user changes html with the gjs editor -- we don't have any info about who was done it, you can see it on the attached screenshot from the db
image

from laravel-grapesjs.

 avatar commented on August 20, 2024

Hi @insssomniac, the issue seems with the package you are using altek/accountant. As there is a mutator for the gjs_data property of your Editable. And it seems your package is not working with the mutators.

from laravel-grapesjs.

insssomniac avatar insssomniac commented on August 20, 2024

Hi @jd-dotlogics, it seems problem isn't with a mutator, because if i changing the gjs_data field in the controller and saving the model, my account is detected correctly and shown in log.

It seems what guard "web" doesn't detect the user when saving comes from the editor. Also if I try to get the Auth::user() in the store_gjs_data() function, it returns null. So maybe it is another way to get the user?

from laravel-grapesjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.