Comments (10)
after some time spent on it, only way that seems to work well is:
public function register()
{
if (Config::get('quarx.load-modules', false)) {
$modulePath = base_path(Config::get('quarx.module-directory').'/');
$modules = glob($modulePath.'*');
foreach ($modules as $module) {
if (is_dir($module)) {
$module = lcfirst(str_replace($modulePath, '', $module));
$module = ucfirst($module);
$str_module = "\Quarx\Modules\%module\%moduleModuleProvider";
$str_module = str_replace('%module',$module,$str_module);
$this->app->register($str_module);
}
}
}
}
not sure why escaped backslash not work.
the first backslash is ok to be there.
i hope this will help.
Thanks for your time.
P.S: composer dump is mandatory
from cms.
I am having the same issue with make:module
Deleting the newly-created folder in quarx\modules
will free the app up again, however.
from cms.
Did you do a composer dump?
It seems like its an issue with composer not being updated thusly missing the provider
from cms.
I just released some updates to the module builder, please try one more time and see if it works, also please check the composer dump. I appreciate any feedback thanks.
from cms.
Got the latest and was able to generate a crud module. Executed composer dump
followed by artisan module:publish Funnels
(using my module name) and received the following error: Class '\Quarx\Modules\Funnels\FunnelsModuleProvider' not found
Namespaces are correct, but in QuarxModuleProvider
, this line $this->app->register('\Quarx\Modules\\'.ucfirst($module).'\\'.ucfirst($module).'ModuleProvider');
cannot find it.
from cms.
Do me a favor and manually edit it to remove the first backslash
from cms.
if you read this, please make same change on /ModuleMake.php. same issue with the "P" letter
from cms.
regarding the backslash, not working.
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\": "app/",
"Quarx\": "quarx/"
}
},
this is the piece from composer.json. but seems to be in right place.
from cms.
Updated all around, and fixed a small issue with the templates and the dropzone stuff FYI
from cms.
I am still getting the same problem here (php 5.6, composer 1.4.2, quarx 3.2.25, linux). Changing the composer.json, from:
"psr-4": {
"App\\": "app/",
"Quarx\\": "quarx/"
}
to:
"psr-4": {
"App\\": "app/",
"Quarx\\": "quarx/",
"Quarx\\Modules\\": "quarx/modules/"
}
And running "composer dump" solved the issue. I think the composer autoloader is looking for the folder "quarx/Modules" and then not finding the class, while QuarxModuleProvider find it.
from cms.
Related Issues (20)
- Blog::getHeroImageURLAttribute () has an uused value HOT 1
- npm install fails to run on clean install HOT 1
- How to pull in faq items from the faq module in a custom template HOT 3
- CMS breaks spatie/laravel-permission roles. HOT 13
- Postgresql HOT 1
- [QUESTION] Can I add custom admin theme? HOT 1
- Remove Module HOT 1
- multi language does not run : language always 'en' HOT 1
- Multilanguage does not work on menu links HOT 4
- Can not create Page, Blog, Menu etc. HOT 3
- Whoops\Exception\ErrorException : Trait 'App\Servcies\Traits\HasRoles' not found HOT 2
- Using Sentinel HOT 1
- LogicException : Key path does not exist or is not readable HOT 1
- Adding Menu Items to Admin Panel HOT 1
- Viewing HTML in the Redactor editor causes scroll bug [Chrome/Opera]. HOT 1
- Issues with using laravels default pagination
- Demo site : cannot login
- Problem with showing a page
- Laravel 5.8 not suported HOT 6
- We were unable to generate your profile, please try again later(Exception).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.