Giter Club home page Giter Club logo

Comments (3)

jny986 avatar jny986 commented on July 28, 2024

@mxl

First make sure that you have configured Tinx properly as per instructions (I found that re() worked better when I installed the config file as detailed in the install instructions)

Have you ensured that you have your composer.json to search the app folder to autoload models in that folder?

Also try exiting tinx and running composer dumpautoload
This will re load the autoload.

from tinx.

furey avatar furey commented on July 28, 2024

Hi @mxl,

I'm unable to replicate your error using the following environment:

  • Mac OS X 10.13.6 (sw_vers)
  • PHP 7.3.3 (php -v)
  • Laravel Framework 5.8.4 (php artisan -V)
  • Tinx v2.1.9 (composer info | grep tinx)

The steps I took to attempt replication were:

  • Created a new Laravel app for your issue (laravel new tinx-issue-58 && cd tinx-issue-58)
    new-start
    new-end
  • Installed Tinx into the new aplication (composer require --dev ajthinking/tinx)
    install-tinx-start
    install-tinx
  • Created a new Order model (php artisan make:model Order)
    make-order
  • Moved the default User model into the app/Models directory as per your example, updating the User model namespace to app/Models
    user
  • Started Tinx (php artisan tinx)
    tinx
  • Ran both (new App\Order)->test() and (new App\Models\User)->test() statements in Tinx and confirmed both returned BadMethodCallException error messages
    bad-method
  • Added your test() method to both models
    methods
  • Reloaded Tinx (re())
    re
  • Ran both (new App\Order)->test() and (new App\Models\User)->test() statements in Tinx and confirmed both now returned the intended 123 output messages
    123

Wish I could help more, but as I can't replicate, I'll have to close the issue!

from tinx.

MladenJanjetovic avatar MladenJanjetovic commented on July 28, 2024

This is happening to me as well. Just installed Tinx in Laravel 5.8
re() and reo() throws no error, but i.e. my App\Transaction class is not reloaded. I have to quit the Tinx and start it again to see the cahnges.

Mac OS X 10.14.4
PHP 7.3.3
Laravel Framework 5.8.4
ajthinking/tinx v2.3.1

from tinx.

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.