Skip to content

Instantly share code, notes, and snippets.

@relliv
Created May 29, 2022 14:31
Show Gist options
  • Save relliv/9c53172119c1ecb1f67d2686619c2185 to your computer and use it in GitHub Desktop.
Save relliv/9c53172119c1ecb1f67d2686619c2185 to your computer and use it in GitHub Desktop.
Laravel & Package Folder Structure
src
├─> app
│ ├─> Console
│ │ └── Kernel.php
│ ├─> Exceptions
│ │ └── Handler.php
│ ├─> Http
│ │ ├─> Controllers
│ │ │ └── Controller.php
│ │ ├── Kernel.php
│ │ └─> Middleware
│ │ ├── Authenticate.php
│ │ ├── EncryptCookies.php
│ │ ├── PreventRequestsDuringMaintenance.php
│ │ ├── RedirectIfAuthenticated.php
│ │ ├── TrimStrings.php
│ │ ├── TrustHosts.php
│ │ ├── TrustProxies.php
│ │ └── VerifyCsrfToken.php
│ ├─> Models
│ │ └── User.php
│ └─> Providers
│ ├── AppServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── BroadcastServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
├─> bootstrap
│ ├── app.php
│ └─> cache
│ ├── .gitignore
│ ├── packages.php
│ └── services.php
├─> config
│ ├── app.php
│ ├── ...
│ └── view.php
├─> database
│ ├── .gitignore
│ ├─> factories
│ │ └── UserFactory.php
│ ├─> migrations
│ │ ├── 2014_10_12_000000_create_users_table.php
│ │ ├── 2014_10_12_100000_create_password_resets_table.php
│ │ ├── 2019_08_19_000000_create_failed_jobs_table.php
│ │ └── 2019_12_14_000001_create_personal_access_tokens_table.php
│ └─> seeders
│ ├── DatabaseSeeder.php
│ ├── DevelopmentSeeder.php
│ ├── ProductionSeeder.php
│ └─> User
│ ├── DefaultUserSeeder.php
│ └── UserDevSeeder.php
├─> lang
│ └─> en
│ ├── auth.php
│ ├── pagination.php
│ ├── passwords.php
│ └── validation.php
├─> public
│ ├── .htaccess
│ ├── favicon.ico
│ ├── index.php
│ └── robots.txt
├─> resources
│ ├─> css
│ │ └── app.css
│ ├─> js
│ │ ├── app.js
│ │ └── bootstrap.js
│ └─> views
│ └── welcome.blade.php
├─> routes
│ ├── admin.php
│ ├── api.php
│ ├── channels.php
│ ├── console.php
│ └── web.php
├─> storage
│ ├─> app
│ │ ├── .gitignore
│ │ └─> public
│ │ └── .gitignore
│ ├─> framework
│ │ ├── .gitignore
│ │ ├─> cache
│ │ │ ├── .gitignore
│ │ │ └─> data
│ │ ├─> sessions
│ │ │ ├── .gitignore
│ │ │ └── J1w0zlnzXXRjjXjDWUNBJ1vb5llAdlnkUUDpZ7sU
│ │ ├─> testing
│ │ │ └── .gitignore
│ │ └─> views
│ │ ├── .gitignore
│ │ ├── 0751d913c8a537d657786b7598b6d4303bf34d2f.php
│ │ ├── ...
│ │ └── fb09edb8c7f89a741e836eebe63ffccdd3b673a3.php
│ └─> logs
│ ├── .gitignore
│ └── laravel-2022-05-14.log
├─> tests
│ ├── CreatesApplication.php
│ ├─> Feature
│ │ └── ExampleTest.php
│ ├── TestCase.php
│ └─> Unit
│ └── ExampleTest.php
├── artisan
├── .editorconfig
├── .env
├── .env.example
├── .gitattributes
├── .gitignore
├── .styleci.yml
├── composer.json
├── composer.lock
├── package.json
├── phpunit.xml
├── README.md
└── webpack.mix.js
package-folder
├─> config
│ └── package-name.php
├─> database
│ └─> migrations
├── LICENSE
├── README.md
├─> resources
│ └─> views
├─> routes
│ ├── admin.php
│ ├── api.php
│ └── web.php
└─> src
│ ├─> Exceptions
│ │ └── ThemeStoreException.php
│ ├─> Facades
│ │ └── PackageName.php
│ ├─> Http
│ │ ├─> Controllers
│ │ │ ├─> Admin
│ │ │ ├─> Api
│ │ │ └─> Web
│ │ ├─> Middleware
│ │ └─> Requests
│ ├─> Models
│ ├── ServiceProvider.php
│ ├─> Services
│ │ └── PackageService.php
│ └─> Traits
│ └── CommonCacheTrait.php
├── .codecov.yml
├── .editorconfig
├── .gitattributes
├── .gitignore
└── .styleci.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment