diego-rlima / artisan-make-file-location Goto Github PK
View Code? Open in Web Editor NEWAbility to change the namespace/location of the files generated by the "artisan make" commands.
License: MIT License
Ability to change the namespace/location of the files generated by the "artisan make" commands.
License: MIT License
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
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
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.