Code Monkey home page Code Monkey logo

artisan-make-file-location's People

Contributors

diego-rlima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vesper8

artisan-make-file-location's Issues

The "--prefix" / "--suffix" option does not exist.

Hi there @diego-rlima ,

I've been looking for some time for a sollution like you got here, seems amazing! I am working with a custom module loader so your sollution is the bomb. I've tried installing it in my new 'boilerplate' project, please see: https://github.com/semspanhaak/module-loader-template, but without any succes.

I keep getting the following errors, while I did follow your listed steps at https://github.com/diego-rlima/artisan-make-file-location#installation
image

Do you know what is happening or is wrong?

Laravel Framework 7.25.0
PHP 7.4.9 (cli) (built: Aug 7 2020 19:23:06) ( NTS )
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans
with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies

how can I use this to create files outside of the default app folder ?

Hello! First of all can I say this package seems like a godsend! I've been looking for such a solution for ages!

It's almost perfect but it seems it lacks a tiny bit flexibility or maybe I'm just not understanding how to achieve what I want.

I develop all my app code inside a modules folder. I leave the default app folder alone and still use it to modify files such as Kernel.php and EventServiceProvider. But all my app-specific code is inside a modules folder. I'll explain in a moment. I then use composer to autoload the files inside that folder. I've been doing this for years and it works great. Only problem is I can't ever use the artisan make commands or else I have to manually move the files and rename the namespaces and it kinda ruins the process.

I want to be able to do this:

php artisan make:model Post

And the result I want is for the files to be created in

/modules/vendor/package/src/Models/Post.php

and the namespace should be

namespace Vendor\Package\Models;

Is it possible to use this package to achieve this?

I tried replacing {root} inside the config file but that didn't work. There also doesn't seem to be a way to replace what {root} is evaluated to without creating additional custom commands

Would really appreciate some help or feedback on this @diego-rlima !

Thanks much!

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.