hydra
Hydra is a zero-config API boilerplate with Laravel 10x + Laravel Sanctum that comes with an excellent user and role management API out of the box
File Explorer
Download Latest Version (.zip)- PHP8.1.yml
- PHP8.2.yml
- Kernel.php
- Handler.php
- Controller.php
- HydraController.php
- RoleController.php
- UserController.php
- UserRoleController.php
- Authenticate.php
- EncryptCookies.php
- HydraLog.php
- PreventRequestsDuringMaintenance.php
- RedirectIfAuthenticated.php
- TrimStrings.php
- TrustHosts.php
- TrustProxies.php
- VerifyCsrfToken.php
- Kernel.php
- Role.php
- User.php
- UserRole.php
- AppServiceProvider.php
- AuthServiceProvider.php
- BroadcastServiceProvider.php
- EventServiceProvider.php
- RouteServiceProvider.php
- .gitignore
- app.php
- app.php
- auth.php
- broadcasting.php
- cache.php
- cors.php
- database.php
- filesystems.php
- hashing.php
- hydra.php
- logging.php
- mail.php
- queue.php
- sanctum.php
- services.php
- session.php
- view.php
- UserFactory.php
- 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
- 2022_05_17_181447_create_roles_table.php
- 2022_05_17_181456_create_user_roles_table.php
- 2024_01_07_095037_add_expires_at_to_personal_access_token_table.php
- DatabaseSeeder.php
- RoleSeeder.php
- UsersSeeder.php
- .gitignore
- auth.php
- pagination.php
- passwords.php
- validation.php
- .htaccess
- favicon.ico
- index.php
- robots.txt
- app.css
- app.js
- bootstrap.js
- welcome.blade.php
- api.php
- channels.php
- console.php
- web.php
- .gitignore
- .gitignore
- .gitignore
- .gitignore
- .gitignore
- .gitignore
- .gitignore
- .gitignore
- .gitignore
- AdminLoginTest.php
- HelloHydraTest.php
- RoleTest.php
- UserRoleTest.php
- UserTest.php
- ExampleTest.php
- CreatesApplication.php
- TestCase.php
- .editorconfig
- .env.example
- .gitattributes
- .gitignore
- .styleci.yml
- artisan
- composer.json
- docker-compose.yml
- LICENSE
- package-lock.json
- package.json
- phpunit.xml
- phpunit.xml.bak
- pint.json
- README.md
- webpack.mix.js
# Installation Guide
git clone https://github.com/hasinhayder/hydra
Downloads the entire project code from GitHub to your computer.
cd hydra
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker run --rm \
Runs the built image as an actual container.
- [Without Docker (Simple)](#without-docker-simple)
Type this command into your terminal and run it.
- [Using Docker \& Laravel Sail](#using-docker--laravel-sail)
Type this command into your terminal and run it.
Pulled directly from this repo's README.
3. Node.js
Easynpm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
4. PHP (Composer)
Easycomposer install
Installs the PHP libraries listed in composer.json.
laravelsail/php81-composer:latest \
Type this command into your terminal and run it.
composer install --ignore-platform-reqs
Installs the PHP libraries listed in composer.json.
Pulled directly from this repo's README.
