You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot declare class Pingpong\Presenters\Model because the name is already in use
This message prompts even when I try to open the pages/articles in the admin panel.
Log file:
[2014-10-21 20:31:24] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Cannot declare class Pingpong\Presenters\Model because the name is already in use' in /Applications/MAMP/htdocs/ping-admin/vendor/pingpong/presenters/src/Pingpong/Presenters/Model.php:5
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
The text was updated successfully, but these errors were encountered:
To solve this problem, you have to update the file:
vendor/pingpong/src/PingPong/Presenters/Model.php
with the following
<?php namespace Pingpong\Presenters;
//OLD
// use Illuminate\Database\Eloquent\Model;
// class Model extends Model implements PresentableInterface {
//NEW
use Illuminate\Database\Eloquent\Model as EloquentModel;
class Model extends EloquentModel implements PresentableInterface {
use PresentableTrait;
}
Hi,
after running
with the following response:
I got the error message:
This message prompts even when I try to open the pages/articles in the admin panel.
Log file:
The text was updated successfully, but these errors were encountered: