Comments (5)
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.
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.
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.
Yep it was that now the routes doesnt work I enterthe /panichd and I get 404 error
from panichd.
Solved, putting Kordy\Ticketit\TicketitServiceProvider::class, just before App\Providers\RouteServiceProvider::class solved it. Thanks!
from panichd.
Related Issues (20)
- ldap integration HOT 2
- Compatible with laravel 8 HOT 1
- error during installation HOT 1
- /panichd url 404 not found error HOT 19
- Creating default object from empty value HOT 1
- How to make changes in PanicHD Views files? HOT 7
- Install error laravel 8.x HOT 2
- Error to load charts on dashboard
- SQLSTATE[42S22]: Column not found: 1054 Unknown column 'dep_ancestor.name' in 'where clause' HOT 2
- your opinion for integration in existing app HOT 4
- Unable to locate publishable resources. HOT 4
- jquery error when posting tickets as user HOT 6
- Processing but not giving information HOT 2
- image upload error
- the screen stays fixed when the Mail Server cannot be reached?
- Laravel 9 Support
- ErrorException Undefined variable: setting HOT 1
- Namespaces
- User Model HOT 1
- php artisan vendor:publish --tag=panichd-public
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panichd.