You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,25 @@ and you'll need to do another compose install to install the Laravel project's d
48
48
./skeleton/bin/project use {skeleton-name}
49
49
```
50
50
51
+
## Autoload
52
+
When you use a skeleton, it will overwrite the default root composer.json file and the commands for generating the project will no longer be available. To fix this, you need to autoload the skeleton folder using psr-4. Like this:
53
+
54
+
```json
55
+
{
56
+
"autoload": {
57
+
"psr-4": {
58
+
"App\\": "app/",
59
+
"Core\\": "core/",
60
+
"Skeleton\\": "skeleton/",
61
+
"Database\\Factories\\": "database/factories/",
62
+
"Database\\Seeders\\": "database/seeders/"
63
+
}
64
+
}
65
+
}
66
+
```
67
+
68
+
**Tip: don't forget to run composer dump-autoload afterward.**
69
+
51
70
Once you have built your skeleton and are satisfied with your work, you can generate a project and all the modifications you have made will be added only to the skeleton you have created.
Copy file name to clipboardExpand all lines: projects/default-graphql/README.md
-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
<imgsrc="/art/graphql.png"alt="Laravel API Skeleton"align="center">
2
-
3
1
# Laravel API Skeleton - Example
4
2
This project is a skeleton for building an API with Laravel and GraphQL. It is the simplest skeleton and contains only the basic files and dependencies
0 commit comments