Coder Social home page Coder Social logo

model-log's Issues

Undefined index: password

I used ModelLogging inside User, when I did register and login, it showed this error notification.

[Question] How to dispatch events to log actions ?

Hello, sorry if this is obvious I'm new to laravel and voyager.
I'm trying to use model-log to log (eh !) but I'm facing issue when using a custom controller with a save action on the model.
Ie :
Changing the model with Voyager bread -> works as expected
Changing the model with myCustomController() [..] $myModel->save() doesn't update model-log table.

I've tryed to dispatch events event(new BreadDataUpdated($dataType, $myModel)) but without success.
Could you point me to the right direction ?
Thanks.

Larapack Hook Approved

Greetings and thanks for sending in a hook for Larapack.io.

Your hook has been approved, however I recommend that you tag a version in the Github repository, such as v1.0.0.

Feel free to email me at [email protected] for any questions or issues.

Thank you,
Mark

How to log for relationships

Hi,

I've got a relationship belongsToMany through a pivot table (user, role role_user) type tables and the interface works fine - I just cannot get it to log. Even if I create a custom Model for it with the log use statement it never logs. Any ideas?

Thanks
Ian

how to use ModelLog

use Jahondust\ModelLog\Traits\ModelLogging;

class Student extends Model
{
use ModelLogging;
}

Installation problem "require.model-log is invalid, it should have a vendor name"

  • Laravel: v8.33.1
  • Voyager: v1.4
  • PHP: v7.4.5

php artisan hook:install model-log

require.model-log is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9]
(([_.]?|-{0,2})[a-z0-9]+)*$".

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.