Giter VIP home page Giter VIP logo

Comments (6)

osdebianly avatar osdebianly commented on July 29, 2024
$data = $this->repository->all() ;  //return Collection
$data->toArray() ;  // Collection Can't use toArray() method

from someline-starter.

milkmeowo avatar milkmeowo commented on July 29, 2024

@osdebianly $this->repository->all(); // just return as array not Collection

//Skip presenter and bringing the original result of the Model
$post = $repository->skipPresenter()->find(1);

print_r( $post ); //It produces an output as a Model object
print_r( $post->transform() ); //It produces an output as array

from someline-starter.

osdebianly avatar osdebianly commented on July 29, 2024

@milkmeowo

  • I found the reason for the error 🙏 Infinite loop
    Someline\Base\Models\BaseModel->getIdAttribute() call Illuminate\Database\Eloquent->mutateAttribute() call Someline\Base\Models\BaseModel->getIdAttribute() ...... 😄Always get the id attribute

So I delete Someline\Base\Models\BaseModel->getIdAttribute() function everything is OK

from someline-starter.

libern avatar libern commented on July 29, 2024

use php artisan starter:entity instead :)

from someline-starter.

osdebianly avatar osdebianly commented on July 29, 2024

I've tried

from someline-starter.

Muhammadinaam avatar Muhammadinaam commented on July 29, 2024

Hi, this is a nice package but I think that the developers have stopped working on it. Maybe you can try this package: https://github.com/Muhammadinaam/speed-admin. It supports Laravel 8+.

from someline-starter.

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.