Giter Club home page Giter Club logo

Comments (5)

JuanAdamuz avatar JuanAdamuz commented on June 14, 2024

C:\Users\IES TRASSIERRA\Documents\GitHub\pcu\vendor\panichd\panichd\src\Models\Member.php

/*
 * Get member related departments in Department hierarchy
 *
 * For a main department: Returns self + all descendants
 * For descendant: Returns self + ancestor
 *
 * @Return collection
*/
public function getRelatedDepartments()
{
    $member_department = $this->department()->get();
    
    if ($this->department()->first()->is_main()){
        return $member_department->merge($this->department()->first()->descendants()->get());
    }else{
        return $member_department->merge($this->department()->first()->ancestor()->get());
    }
}

}

Arguments
"Cannot make non static method App\User::isAdmin() static in class PanicHD\PanicHD\Models\Member"

from panichd.

xaviqv avatar xaviqv commented on June 14, 2024

Hola @JuanAdamuz ,
Are you still having this issue? I've just released an update of the package. It doesn't have any modification of the installation files, but anyway, could you please do a fresh install of current release and confirm if you still get this error? Or if you solved it before i'd be glad to know how.

In the case of a fresh install where you still have any trouble, please tell us your Laravel version. Thanks for your feedback!

from panichd.

JuanAdamuz avatar JuanAdamuz commented on June 14, 2024

Sorry for the late response...

I have just updated my laravel istallation to 5.7 and still have the issue:

In Member.php line 9:

Cannot make non static method App\User::isAdmin() static in class PanicHD\PanicHD\Models\Member

The thing is that i already have a IsAdmin() method in my USer model for my framework, this could be the problem?

from panichd.

JuanAdamuz avatar JuanAdamuz commented on June 14, 2024

Yep it was that now the routes doesnt work I enterthe /panichd and I get 404 error

from panichd.

JuanAdamuz avatar JuanAdamuz commented on June 14, 2024

Solved, putting Kordy\Ticketit\TicketitServiceProvider::class, just before App\Providers\RouteServiceProvider::class solved it. Thanks!

from panichd.

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.