Urgent.News

What's breaking now, across thousands of outlets.

Tech

Laramod: Laravel modules without the magic that still feels magical

Why Every Laravel application starts out tidy. Then it grows, and one day app/Http/Controllers has eighty files in it, billing sits beside the blog, the blog sits beside the support desk, and the only thing the files of a feature share is a prefix in their names. Laravel sorts code by what it is : controllers here, models there, migrations somewhere else. That is perfect for a small application.…

Laramod is a Laravel module package that aims to provide a simple and magical way to build modular applications without the need for additional files and configurations. The package aims to provide a straightforward approach to organizing code and making modules easily discoverable. Laramod focuses on providing a module system that adheres to the principle of "one file, one module" by utilizing contracts to define capabilities of modules such as providing routes, migrations, translations, and more.

The package allows modules to be loaded based on their implementation of these contracts instead of relying on file system organization or auto-discovery. Laramod's approach eliminates the need for separate composer.json files per module, a module.json file, and status files. Instead, the module's presence is determined by implementing the respective contract.

The application knows about a module's contributions by looking at its class implementation, making it easier to understand the module's purpose and functionality.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I Built a Football Data Analysis Pipeline From 220,000 Matches

For academic research only. Not betting advice. GitHub : MENG-COOLMAN/PitchQuant — MIT license, free to use. The TL;DR Six months. 227,000 matches.

  • Researcher analyzed 227,000 football matches to find hidden insights in odds
  • Weak-consensus trap: favorite wins 36-43% of the time when market is not strongly convinced
  • Deceptive low odds: Home odds below 1.30 may reduce actual home wins significantly

Our test clicked a button our users couldn't reach

We shipped a small blog editor inside our dashboard. The same evening I opened it and the form was cut off at the bottom of the screen. The body field was half visible.

  • New blog editor added with bug
  • Form taller than screen causing clipping
  • Test assumed scrollable form, not fixed

More from Saturday 19 September →