- Run
npm install
- For production (minifies the code), run
npm run build
- For development (auto-refreshes the browser on code changes), run
npm run dev
We follow a Domain Driven Design (DDD) approach with the following structure:
app/Domains
- Contains all domains within the applicationapp/Domains/Shared
- Shared components between multiple domainsapp/Domains/{domain}
- Domain-specific filesModel
,Exception
,ValueObject
,Interface
,Trait
,Repository
,Enum
app/Infrastructure/{domain}
- Infrastructure required for the app (e.g., Laravel)app/UserInterface/Domain/{domain}
- Controllers, requests, middleware, etc. specific to a domain- Subdirectories for
Controllers
,Requests
,Middlewares
,Resources
,Jobs
,Listeners
,Events
,Notifications
,Mails
- Subdirectories for
Generic design & resource files are located in the resources
directory:
resources/js
- Generic JavaScript filesresources/sass
- Generic SASS filesresources/views
- Generic Blade files
For utilities like SweetAlert, create a directory e.g., resources/js/utilities/sweetalert
for related JavaScript files.
- Blade files shown should extend
base_clean.blade.php
for basic HTML structure. - For authenticated pages, extend from
base.blade.php
containing navigation and sidebar structure. - Running
npm run dev
auto-refreshes the browser on blade file changes.
- Image assets go in the
resources/{asset-type}
directory (e.g.,resources/images
orresources/fonts
). - Use the
View::asset()
helper function to generate the correct URL for the asset.
Example:
<img src="{{ Vite::asset('resources/images/logo.png') }}">
Define aliases using the macro method on the Illuminate\Support\Facades\Vite
class within a service provider's boot
method.
Example:
Vite::macro('image', fn (string $asset) => $this->asset("resources/images/{$asset}"));
Usage:
<img src="{{ Vite::image('logo.png') }}">
- Create an account on sentry.io
- Create a new project
- Select Laravel as a framework
- Configure SDK by copying the code from sentry.io to terminal
- Run
php artisan sentry:test
to test if it works
- In PhpStorm, go to
Preferences | Editor | Inspections
- Click the setting cog icon and select
Import Profile
- Select the
iDrive_inspections.xml
file from the root of the project
This project, including all of its source code and documentation, is protected under the Joey Roeters GitHub Project License Agreement. The license strictly prohibits downloading, cloning, forking, modifying, using, or distributing any part of this project. Viewing the content on GitHub for personal or educational purposes is permitted within the constraints of the license agreement.
By accessing this repository, you agree to comply with all the terms and conditions outlined in the license. Any use of the project's content outside of the permissible viewing on GitHub is a violation of this agreement and may subject you to legal action.
For full license details, see the LICENSE file in this repository.