Boğaziçi Denizcilik kurumsal web sitesi ve yönetim paneli için geliştirilmiş REST API backend uygulamasıdır.
## About Laravel
## Teknoloji
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- **PHP** 8.4 / **Laravel** 12
- **MySQL** (Eloquent ORM)
- **Laravel Sanctum** — API token tabanlı kimlik doğrulama
- **Spatie Permission** — Rol ve yetki yönetimi (RBAC)
- **Spatie ActivityLog** — Model değişiklik takibi
- **L5-Swagger** — OpenAPI/Swagger API dokümantasyonu
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Proje **Repository + DTO + Action** pattern'i kullanır:
## Learning Laravel
```
app/
├── Actions/ # İş mantığı (Create, Update, Delete)
├── DTOs/ # Veri transfer nesneleri
├── Http/
│ ├── Controllers/
│ │ ├── Api/Admin/ # Yönetim paneli API (auth gerekli)
│ │ └── Api/V1/ # Public API v1
│ ├── Requests/ # Form doğrulama
│ └── Resources/ # API response dönüştürücüler
├── Models/ # Eloquent modeller
├── Repositories/ # Veri erişim katmanı (Contracts + Eloquent)
└── Concerns/ # Tekrar kullanılabilir trait'ler
```
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application.
## API Yapısı
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
### Admin API (`/api/admin`)
### Premium Partners
Sanctum token ile korunan yönetim endpointleri:
- **[Vehikl](https://vehikl.com)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
API dokümantasyonu: `/api/documentation` (Swagger UI)
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Kurulum
## Code of Conduct
```bash
# Bağımlılıkları yükle
composer install
npm install
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
# Ortam dosyasını hazırla
cp .env.example .env
php artisan key:generate
## Security Vulnerabilities
# Veritabanını oluştur ve seed et
php artisan migrate --seed
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
# Geliştirme sunucusu (Laravel Herd ile)
# Site otomatik olarak https://bogazici-api.test adresinde erişilebilir
```
## License
## Geliştirme
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
```bash
# Testleri çalıştır
composer test
# Belirli bir testi çalıştır
php artisan test --compact --filter=testName
# Kod formatlama
vendor/bin/pint --dirty
# API route listesi
php artisan route:list --path=api
```
## Deployment
Drone CI ile otomatik deployment yapılır:
| Branch | Ortam | Yol |
|--------|-------|-----|
| `test` | Test | `/opt/projects/bogazici/corporate-api/test/api` |
| `main` | Production | `/opt/projects/bogazici/corporate-api/prod/api` |
Deployment Docker container içinde çalışır ve `scripts/deploy-test.sh` / `scripts/deploy-prod.sh` scriptleri kullanılır.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.