ScalableCode
  • Home

Laravel

A collection of 3 posts
The Pros and Cons of Implementing Polymorphic Relationships in SQL Databases
MySql

The Pros and Cons of Implementing Polymorphic Relationships in SQL Databases

Polymorphic relationships offer flexibility in databases but risk data integrity and increase query complexity. Use them sparingly, with checks for integrity and consider alternatives to maintain performance and integrity.
Feb 15, 2024 2 min read
How to export large datasets to CSV in Laravel?
Laravel

How to export large datasets to CSV in Laravel?

Exporting large datasets in Laravel & Laravel Livewire can be challenging, as you need to be mindful of memory limits and processing time.
Jan 6, 2023 2 min read
Testing Laravel apps with multiple domains
Laravel

Testing Laravel apps with multiple domains

When testing Laravel applications that use multiple domains tests get tricky. Imagine an application with the following structure: * API: api.domain.com * Backend: manage.domain.com * Client domains: client1domain.com,client2domain.com, etc.. Route::domain(config('app.domains.api'))->group(function() { Route::get('/', 'Api\ApiIndexController@index')->
Dec 10, 2022 1 min read
ScalableCode © 2025
  • Twitter
Powered by Ghost