Closed mgrWetales closed 3 years ago
Could you please give me a screenshot of your directory structure?
I am using a docker container. directory-structure.txt
I guess it's because of your coding production and Directory separator.
I pushed a force release with 1.3.3 tag.
Reinstall package with --no-cache
flag in composer then remove files and try this version out .
It worked but only the controller got generated, views, routes, and other things didn't happen.
Also, the user is not being converted to admin with the flag is_superuser in the user's table. Command-line showing it's done.
There two directories, "app" and "App" right? please tell me about the information and structure of "App" directory, I think your OS care about capitalizied word
Yes, right, I am using Ubuntu and it strictly case sensitive. See screenshot:
You can update with --no-cache
flag in the composer
this problem has been fixed.
Yes, this problem has been fixed.
Other issues are still there:
sail artisan panel:add [user_id] this command is not working, the is_superuser DB value is not changing to 1
When I made it manually and ran http://192.168.1.47/admin, got below error:
I didn't run command for article but article views got generated:
About is_superuser
I have been working on this.
Because of article
crud example, other 2 problems will be made.
I will remove this example in new version.
Do these steps:
1 - Remove resources/cruds/article.php
2 - Remove article
key in config/easy_panel.php
in actions
key.
3 - Run sail artisan panel:crud -f
Wow, good job done bro, it worked. Thank you :)
Few more things I noticed:
My todo feature is false in the easy_panel.php but still todo directory got created under resources/views/vendor/admin/livewire/todo
Article views are still there under resources/views/livewire/admin/article
Admin user should be redirected to the admin panel by default, for now, I am changing the URL and navigating to the admin panel.
TODOs file should be generated anyway because you can run migrations and set TODOfeature as true and todo should be shown just with a refresh. In the new release, we don't have article examples anymore. Redirect automatically isn't a good choice, sometimes you don't want to see the admin panel and it's not a good action to redirect. In the future, we will create new commands to delete actions and manage them better.
Thank you for your time that spends.
Cool, I will be waiting for the update to make the user a superuser.
One more question :) resources/views/vendor/admin/livewire/todo/ resources/views/livewire/admin/user/
Why todo view files are at a different location?
Can't we use one directory "admin" under the views folder to place layouts and other module views to make it simple? livewire & vendor/livewire folders are really required?
Both of them are required. Because of conflict with other packages, we put base files in different directories.
After crud generation files are not being generated properly. Controllers are showing on the root with names like below.
I am using EasyPanel with Laravel Framework 8.27.0 and installed Jetstream with livewire as well.