<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AZIZ AMINE</title>
    <description>The latest articles on DEV Community by AZIZ AMINE (@aziz_amine_cabdc8e8ed1963).</description>
    <link>https://dev.to/aziz_amine_cabdc8e8ed1963</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4003062%2F03e38347-ae77-4d2c-ae99-2add2f671b25.jpg</url>
      <title>DEV Community: AZIZ AMINE</title>
      <link>https://dev.to/aziz_amine_cabdc8e8ed1963</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aziz_amine_cabdc8e8ed1963"/>
    <language>en</language>
    <item>
      <title>Laravel API Development in Morocco: Architecture Guide 2026</title>
      <dc:creator>AZIZ AMINE</dc:creator>
      <pubDate>Fri, 26 Jun 2026 00:05:00 +0000</pubDate>
      <link>https://dev.to/aziz_amine_cabdc8e8ed1963/laravel-api-development-in-morocco-architecture-guide-2026-1bh8</link>
      <guid>https://dev.to/aziz_amine_cabdc8e8ed1963/laravel-api-development-in-morocco-architecture-guide-2026-1bh8</guid>
      <description>&lt;p&gt;Laravel API Development in Morocco: Architecture Guide 2026 &lt;br&gt;
Laravel remains the #1 PHP framework for API development in 2026&lt;br&gt;
Laravel remains the #1 PHP framework for API development in 2026, and Morocco has become a hub for quality Laravel freelancers and teams. Here is the complete guide to building production-grade APIs with Laravel, based on 40+ projects shipped.&lt;/p&gt;

&lt;p&gt;Why Laravel for APIs in 2026&lt;br&gt;
Eloquent ORM — most expressive DB layer in any framework&lt;br&gt;
Sanctum for SPA/mobile auth (simpler than Passport for most cases)&lt;br&gt;
Scout for Meilisearch / Algolia / Elastic full-text search&lt;br&gt;
Queues with Horizon for background jobs&lt;br&gt;
Octane for performance (Swoole / RoadRunner)&lt;br&gt;
Deep ecosystem : Telescope, Pulse, Forge, Vapor&lt;br&gt;
REST vs GraphQL — What to Choose&lt;br&gt;
Criteria    REST    GraphQL&lt;br&gt;
Learning curve  Low Medium-high&lt;br&gt;
Caching Easy (HTTP) Complex&lt;br&gt;
Over-fetching   Common  Solved&lt;br&gt;
Mobile bandwidth    Higher  Optimized&lt;br&gt;
Best for    Public APIs, simple CRUD    Complex dashboards, mobile apps&lt;br&gt;
My default : REST with Laravel API Resources unless the client has clear GraphQL-specific needs (mobile app with variable fields, highly nested data).&lt;/p&gt;

&lt;p&gt;Standard Laravel API Architecture&lt;br&gt;
app/&lt;br&gt;
├── Http/&lt;br&gt;
│   ├── Controllers/Api/V1/&lt;br&gt;
│   ├── Requests/ (FormRequest for validation)&lt;br&gt;
│   └── Resources/ (API Resources for shaping output)&lt;br&gt;
├── Models/&lt;br&gt;
├── Services/ (business logic)&lt;br&gt;
├── Repositories/ (optional, if complex queries)&lt;br&gt;
├── Jobs/&lt;br&gt;
└── Events/&lt;br&gt;
Key architectural decisions&lt;br&gt;
Versioning via URL (/api/v1/users) not headers — simpler&lt;br&gt;
FormRequest for validation (never validate in controller)&lt;br&gt;
API Resources for every response (shape, transforms, conditionals)&lt;br&gt;
Services layer when controllers exceed 100 lines&lt;br&gt;
Dedicated DTOs for complex payloads (spatie/laravel-data)&lt;br&gt;
Authentication — Sanctum Setup&lt;br&gt;
SPA on same domain : cookie-based, CSRF protected&lt;br&gt;
Mobile app / 3rd party : personal access tokens&lt;br&gt;
Revocation endpoint for logout&lt;br&gt;
Token abilities for granular permissions&lt;br&gt;
Rate Limiting &amp;amp; Security&lt;br&gt;
RateLimiter facade — per user, per IP, per endpoint&lt;br&gt;
CORS : use config/cors.php, never wildcards in prod&lt;br&gt;
SQL injection : always Eloquent / Query Builder, never raw with user input&lt;br&gt;
XSS : Resources escape automatically&lt;br&gt;
Mass assignment : $fillable on every model&lt;br&gt;
HTTPS only : force in AppServiceProvider&lt;br&gt;
Deployment Options for Moroccan Teams&lt;br&gt;
Laravel Forge + DigitalOcean/Hetzner — 12 $/mo Forge + 5-10 €/mo VPS. Most popular.&lt;br&gt;
Laravel Vapor — serverless on AWS. 39 $/mo + AWS costs. Scales infinitely.&lt;br&gt;
Cloudways managed — 14 $/mo, zero server admin. Good for smaller APIs.&lt;br&gt;
Self-hosted Coolify + Hetzner — 5 €/mo, full control, open-source.&lt;br&gt;
Typical Cost to Build a Laravel API in Morocco&lt;br&gt;
Scope   Budget (MAD)    Duration&lt;br&gt;
Small API (5-10 endpoints, auth)    15 000-35 000   3-5 weeks&lt;br&gt;
Medium API (20-50 endpoints, queues)    45 000-120 000  8-14 weeks&lt;br&gt;
Complex API (multi-tenant, webhooks, search)    150 000-400 000 4-7 months&lt;br&gt;
FAQ&lt;br&gt;
Laravel or Node.js for APIs?&lt;br&gt;
Both work. Laravel wins on developer productivity and ecosystem maturity. Node wins on raw throughput for IO-heavy workloads. For 90% of business apps, Laravel is faster to ship and maintain.&lt;/p&gt;

&lt;p&gt;What PHP version in 2026?&lt;br&gt;
PHP 8.3 minimum. PHP 8.4 if your host supports it.&lt;/p&gt;

&lt;p&gt;How to document the API?&lt;br&gt;
Scribe (auto-generate from code) or Scramble. OpenAPI spec export for frontend team.&lt;/p&gt;

&lt;p&gt;Do Moroccan Laravel devs work async with EU/US teams?&lt;br&gt;
Yes, GMT+1 = Paris timezone. Overlap with US East Coast is 3-5 hours, manageable with proper async culture.&lt;/p&gt;

&lt;p&gt;I've shipped 40+ Laravel APIs for Moroccan and international clients. Contact me for API architecture or code review.&lt;/p&gt;

</description>
      <category>api</category>
      <category>architecture</category>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>Sarout Morocco</title>
      <dc:creator>AZIZ AMINE</dc:creator>
      <pubDate>Fri, 26 Jun 2026 00:03:03 +0000</pubDate>
      <link>https://dev.to/aziz_amine_cabdc8e8ed1963/sarout-morocco-2n9p</link>
      <guid>https://dev.to/aziz_amine_cabdc8e8ed1963/sarout-morocco-2n9p</guid>
      <description>&lt;p&gt;An innovative Moroccan platform for finding, renting, and selling real estate, offering a simple and seamless experience tailored to the local market.&lt;/p&gt;

&lt;p&gt;Challenge&lt;br&gt;
Launch Sarout.ma, an innovative Moroccan platform dedicated to searching, renting and selling real estate, on an ultra-competitive market dominated by a few historical players often criticized for dated ergonomics and uneven listing quality.&lt;/p&gt;

&lt;p&gt;The challenge: build an intuitive, modern real estate marketplace able to connect individual owners, agencies and tenants across all of Morocco — Casablanca, Rabat, Marrakech, Tangier, Agadir — with clear navigation and smart search. It also required enriched, geolocated listings updated in real time, and a journey differentiated by user profile (searcher, owner, professional agency).&lt;br&gt;
Solution&lt;br&gt;
Development of a site with a clean, fully responsive interface, designed mobile-first since most real estate searches in Morocco happen on smartphones. Integration of advanced dynamic filters (city, neighborhood, price, surface, number of rooms, property type, furnished/unfurnished) with instant result refresh.&lt;/p&gt;

&lt;p&gt;Listing management via a complete owner dashboard: creation, editing, view statistics, photo management with multi-upload and automatic compression, scheduling of paid promotions. Each property page has an SEO-optimized URL, rich descriptive content, precise geolocation on an interactive map, and the option to directly request a viewing.&lt;/p&gt;

&lt;p&gt;SEO architecture focused on local ranking: category pages per city and neighborhood, Schema.org RealEstateListing markup, dynamic sitemap. Email alert system for saved searches, listing moderation, and a professional agency dashboard for premium accounts.&lt;br&gt;
Results&lt;br&gt;
A high-performing, accessible real estate portal that significantly simplifies property search for individuals and strengthens listing visibility across Morocco. The interface fluidity stands out in a market where competition remains rough around the edges.&lt;/p&gt;

&lt;p&gt;Steady growth in published listings and registered users since launch, with strong organic ranking on queries like "apartment rental Casablanca", "villa sale Marrakech" and city-specific variants. Professional agencies appreciate the dedicated dashboard, and the hybrid revenue model (free listings + paid promotions) generates predictable income. Extensible architecture ready to integrate short-term rentals next.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>startup</category>
      <category>ux</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
