Code Monkey home page Code Monkey logo

laravel-api-generate's Issues

Utilizar arquivos stubs para facilitar a legibilidade do código

Uma pequena sugestão seria usar arquivos stubs como o próprio gerador do Laravel utiliza. Fica mais legível e mais fácil adicionar outras funcionalidades no gerador.

Evita casos como esse:

$controller = '<?php
namespace App\\'.$module.'\\'.$package.'\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\\'.$module.'\\'.$package.'\Repositories\\'.$package.'Repository;

missing tag

Could not find a version of package phfoxer/apigenerate matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.

Class 'App\Modules\General\OwnerChannel\Models\OwnerChannel' not found

Hi , it seems like there is a problem ,

for me I have table called playlist with an owner_channel_id attribute

owner_channel_id is not related to anything , it's just a number without any reference or foreign key ,

the problem is , your package assumed that there is a table with OwnerChannel Model , and it generate some reference to that column ,
Class 'App\Modules\General\OwnerChannel\Models\OwnerChannel' not found

In reality , owner_channel_id is only a number ( string )


updated :
same problem happen on user table , I have facebook_id , as string , and the package assumed that there is a facebook table too 😆

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.