Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve package resources #1285

Merged
merged 27 commits into from
Jun 30, 2024

Conversation

dfsmania
Copy link
Collaborator

@dfsmania dfsmania commented Jun 2, 2024

Question Answer
Pull request type ENHANCEMENT
License MIT

What's in this PR?

A set of improvements over the package resources classes:

  • The use of the File Facade will be favored.
  • Rename src/Console/PackageResources/AssetsResource.php to src/Console/PackageResources/AdminlteAssetsResource.php, this way the class results more meaningful.
  • Rename src/Console/PackageResources/BasicRoutesResource.php to src/Console/PackageResources/AuthRoutesResource.php, this way the class results more meaningful. Now, this resource will be only used to install the authentication routes that are required to work with the Laravel/UI package.
  • REMOVED src/Console/PackageResources/BasicViewsResource.php and related stuff, it was just installing a very basic example view of layout usage. There's no worth having it since more detailed examples on how to use the layout are provided in the WIKI pages.
  • Rework all logic in src/Console/PackageResources/MainViewsResource.php. Now this resource will avoid publishing the views related to the blade-x components. This class was also renamed to LayoutViewsResource.
  • Improve tests of the package console commands.

Checklist

  • I tested these changes.

@dfsmania dfsmania marked this pull request as draft June 2, 2024 15:31
dfsmania added 26 commits June 2, 2024 12:56
There is no need to return boolean, it's better to let an exeption happen
@dfsmania dfsmania marked this pull request as ready for review June 28, 2024 21:53
@dfsmania dfsmania requested a review from resslinger June 28, 2024 22:09
@dfsmania dfsmania merged commit cac45a5 into jeroennoten:master Jun 30, 2024
34 checks passed
@dfsmania dfsmania deleted the improve_package_resources branch June 30, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants