Normal view

Received — 3 September 2026 posts from Frontend, drupal, Panama, reactjs, devops, selfhosted, webhosting, Wordpress, web_design, webdev, PHP, technology, ProgrammerHumor, CRM

GitHub - eznix86/laravel-analytics: Data Build Tool the eloquent way

At work, I kept writing the same thing: a few analytics tables, a cron job to rebuild them, and the same SQL copy-pasted into three models. Change one definition, forget to update one copy, and suddenly two dashboards quietly disagree.

There’s `dbt`, which solves this problem for data teams, but it means bringing Python and a second toolchain into a Laravel project. So I tried the same idea in PHP.

An analytics model is an Eloquent model with one query on it:

```php
class Revenue extends Model implements AnalyticsModel
{
use Analytics;

public function computes(): Query
{
return $this->from(Order::class)
->where('status', '<>', 'cancelled')
->per('customer_id')
->measure('total', 'sum(amount)');
}
}
```

Then `php artisan analytics:sync` works out what depends on what and builds everything in the right order.

After that, it’s just Eloquent:

```php
Revenue::query()->where('total', '>', 1000)->get();
```

A few things it does:

* The `GROUP BY` comes from the dimensions you declare, so you never have to write them twice.
* it has Incremental, microbatch, and snapshot buildsthe, same ideas as dbt.
* Runs on PostgreSQL, MySQL, and SQLite with the same commands.

### What it does not do

Every model in a dependency chain has to use the same connection.

That means you can’t, for example, import a SQLite query directly into a PostgreSQL query. This could be solved with an import mechanism, and I am still thinking about a better way to make that work in an Eloquent-like way.

### Why not just use a query class with dependency injection?

A query class, like the action pattern in `App\Queries`, that you inject wherever you need it is perfectly fine.

If the aggregate is fast, you need live numbers, and you only have one or two of them, write the class and skip this package.

The issue is that it computes on every read and you have zero indexes.

Cache the query? Now you’re stuck dealing with stale data.

There’s another problem: each layer (CTEs, subqueries, etc.) gets re-run instead of being reused.

You can use query classes can be composable by calling each other, but a shared subquery is still recomputed inside every caller. This package composes by reference.

For example, you can have a `StgOrder` model representing a transformed version of the `Order` table. It gets built once, and the models that depend on it simply select from the finished table.

This package can append the rows that arrived since the last run, rebuild one day at a time, or keep one row per version with `valid_from` and `valid_to`.

This package will make a built table that can carry the indexes your read patterns need.

A helper like `Revenue::isStale()` can tell you when the data has passed its freshness window.

### Why not just write a job that rebuilds the table?

That’s essentially what the package does.

The difference is that the queries are reusable, and dependencies are propagated through the entire chain of downstream aggregates.

TLDR; You write reusable queries as a data person but in PHP.

Repo: https://github.com/eznix86/laravel-analytics

Read more about DBT: https://en.wikipedia.org/wiki/Data\_build\_tool

the real dbt guys: https://github.com/dbt-labs/dbt-core (for the curious folks)

submitted by /u/Eznix86 to r/PHP
[link] [comments]

Laravel 12 + Breeze + Spatie Permissions — Complete Role & Permission Setup

If you're working with Laravel 12 and want to implement proper roles and permissions, I put together a complete tutorial using Laravel Breeze + Spatie Laravel Permission.

In the video, I cover:

Laravel 12 + Breeze authentication setup Installing and configuring Spatie Permissions Creating Roles & Permissions Assigning permissions to users Checking roles and permissions Protecting routes with middleware Role-based access control Practical examples with Admin / Manager / Employee roles

🎥 Full tutorial: https://youtu.be/vX46YQprMho Language:Hindi

Hope this helps anyone currently implementing RBAC in Laravel.

submitted by /u/Round-Pie-7125 to r/PHP
[link] [comments]

Successful Migration from Proxmox

Successful Migration from Proxmox

I previously made a post a while ago about wanting to leave Proxmox for my own version of Arch using packages such as Cockpit, Podman, and other tools. Though I decided to use Debian 13 instead for this task. I only had a very basic Proxmox setup at first and did not really like the way I had configured my server. This made me wonder if I could use a more bare bones distribution like Arch or base Debian and configure my system the way I liked it to try and challenge myself more. If anyone has an suggestions of more services to deploy or things to try please let me know. Also, I do not hate Proxmox I just wanted a way to challenge myself and learn some new things.

Here's an overview of my new setup:

Host Specs

Intel Core i7-9700K

32GB DDR4-2666

128GB SATA SSD x4

Storage and Filesystem

Instead of using a basic partitioning scheme I built out my storage to fit my needs. I used RAID for my root and gave it 20GB on each drive so I could have enough storage for my main system files. Then I dedicated the rest to my ZFS pool for /home where all my containers were to be held. My purpose for using ZFS on /home was because I wanted all the benefits of ZFS for all my containers.

Partitioning Scheme

o 1GB EFI

o 8GB SWAP (RAID 10)

o 20GB root using BTRFS (RAID 10)

o Remaining mounted on /home using a striped mirror zfs pool (essentially RAID 10)

Networking

Host Interface

o Statically assigned on my LAN subnet

Podman Macvlan

o Used to assign containers their own individual LAN IP addresses

Kernel Macvlan Shim

o Virtual bridge to allow host-container connections and allow routing from my VPN

Services

Cockpit Web GUI

o I use this to stand in place of Proxmox’s web interface, as it allows me to remotely manage and watch my host’s status and resource utilization.

Uptime Kuma

o I am running this application in Podman and it allows me to set a dashboard that monitors the uptime of services such as my DNS, VPN, DDNS, and more.

Ntopng

o Used to monitor live traffic flows across my network and is run in Podman. It monitors my host’s network interface and allows me to view all egress and ingress traffic.

Technitium DNS

o Configured local authoritative forward zones and reverse lookup zones with custom A/PTR records for my LAN and WireGuard peers. I also added a blocklist to my network to block trackers, telemetry, and ads.

WireGuard VPN

DDNS Configuration

submitted by /u/xcf1ag to r/selfhosted
[link] [comments]

En casa de herrero, cuchillo de palo. INADEH y la Atención al Cliente.

El periodo pasado terminé un curso, pero han pasado casi 3 meses y todavía no suben el certificado, en el grupo de WhatsApp del curso todos los compañeros andan preguntando, bueno al parecer he Sido el único que ha tenido la iniciativa de indagar, en la web indica que hay que escribirle al instructor, eso hice hace unas semanas, pero la instructora no ha dado respuesta, incluso ni siquiera responde dentro del grupo.

El día de hoy procedí a llamar a INADEH y la primera persona en responder me atendió de forma amable y me indica que debo llamar al departamento de certificación, procedo a llamar y aquí empieza todo:

- Yo: Buenos días.

- La encargada: ¿Qué quiere?

- Yo: Mire, hace 3 meses culminé un curso y...

- La encargada: Diga que quiere, no me haga perder tiempo, ¿Que curso?

- Yo: (Mordiendo la lengua): De xxxx.

- La encargada: cédula.... (Busca) El certificado está en trámite, en 2 semanas está... (Procede a cerrar)

Yo he dado cursos de atención al cliente en INADEH, pero al parecer es su propio personal quien necesita tomar esos cursos.

submitted by /u/MorningDazzling6948 to r/Panama
[link] [comments]

¿Por qué la ley panameña protege el puesto del educador de MEDUCA y universidades públicas por encima del derecho de los niños y jóvenes a aprender?

¿Por qué la sociedad permite que esto ocurra y no exige al gobierno de turno que cambie?

¿Cuándo se van a reducir estos salarios y sacar a los educadores que hace años dejaron de actualizarse pero perciben salarios altos?

¿Cuando se va a ajustar el presupuesto de educación que va enfocado en salarios en vez de el estudiante e infraestructura?

submitted by /u/titoafu to r/Panama
[link] [comments]

Carros Chinos EV y PHEV experiencias

Carros Chinos EV y PHEV experiencias

Hola Comienzo este post compartiendoles mi experiencia con mi auto Chino, tengo 14 años que manejo de los cuales he tenido 9 carros de diferentes motores 4 cilindros turbo, 6 cilindros y 8 cilindros con diferentes poderes y para diferentes ocaciones tipo Van, pickup, sedan ect..

Todos me dieron problemas indiscutiblemente de la Marca. Asi que Decidi probar Algo muy Diferente e irme a Un chino

Pero estaba entre full Ev ( Electrico o meterme a PHEV )

Al final compre el BYD Leopard 7 PHEV que vende la Gente de Asia motor en Tumba Muerto, con 5 años de garantia 2 años de mantenimiento Gratis

El carro viene con una Bateria de 35kwh osea cada carga full te cuesta $7 ya que solo usa los 30kwh por seguridad no puede descargarse a 0 adicional usa un motor a gasolina que no esta conectado a las ruedas unicamente se usa para generar electricidad y mantener el Auto funcionando 100% a bateria que significa que el auto nunca llega a 0% solo a 15% de ahi se enciende automaticamente el motor para mantenerse la bateria en ese 15% siempre o si deseas hacer que se recargue gastarias mas gasolina pero recargaria la bateria mientras manejas

El auto tiene mucho lujo en cuanto a manejo, tiene adas maneja autonomo en la autopista rebasa solo, el auto tiene autoparking y valet parking si valet osea me bajo del carro y es capaz de parkearse solo.

Desde panama a colon me toma 73km ida y 73k de regreso los hago 100% ev pero llego con 15% y a lo mejor consume 1 litro de gasolina asi que en teoria te da para 150km dependiendo como lo pisas

La suspension es muy rica no sientes huecos ni nada

Ya tiene 23mil kilometros en 6 meses lo recargo todos los dias en la noche consume 900kwh al mes viajando los 30 dias lo cual es el equivalente a $270 $0.30 el kilowatt

Los frenos son regerativos osea casi no los uso no gasto en tacos

Antes tenia una explorer que me gastaba $600 todos los dias sin contar los mant cada 5k que es $180 en la agencia, ect.... ya saben un gasta mensual de $800

Voy mil veces mas comodo la bateria debe durar 600mil km a 1millon la transmision es de 1 solo cambio tiene 2 motores electricos que dura mismo

En esos 23k me paso un pequeño choque y es lo que muchos quieren saber, llame a mi seguro fueron rapidos assa, fui a la agencia tenian que pedir la pieza de china, duro 1 semana todo perfecto me llamaron la cambiaron no tuve que pagar nada porque el gasto era mayor, ademas de que me arreglaron el golpe muy rapidos en el taller, tiene varios chinos que no hablan español que son profesionales tienen las maquinas de byd para calibrar Los ADAS, tienen stock de muchisimas piezas a la cual me sorprendio, retrovisores , espejos parabrisas lamparas focos ect.. de todo. Pense que como iba a ser un auto chino durarian meses pero fue rapido y muy facil, el trato es increible.

Del resto hay sigo dandole pata, mi hermano tiene uno y va por 4000 kilometros . El 0-100 es 4.5 segundos es un carro rapido con torque inmediato

Queremos ver experiencias de personas que tengan jetour g700, lyn a co , zeeker, tesla, geely, dongfeng friday , Gac S7 queremos ver como han sido los talleres el futuro de esto se viene la gasolina esta cara y ya debemos hacer un cambio por el bien de todos nosotros.

Se que tesla es para muchos algo mas Premium, Pero BYD y las otras marcas chinas estan impresionando mucho y este tema De Ev ha sido una experiencia y creanme jamas quiero regresar a motores normales con transmimsion ya no quiero ese camino.

Cuenteme sus experiencias.

Estoy dispuesto a resolver dudas, y si alguien esta en busca de comprar le puedo dar consejos ya vi todo lo que hay el mercado de carros chinos en EV y PHEV

submitted by /u/Ready-Plan1633 to r/Panama
[link] [comments]

DroppedNeedle - Self-hosted all-in-one music server

Hello everyone! Some of you might remember DroppedNeedle, my self-hosted, all-in-one music app I've been building since October last year.

Just a quick update because the last few weeks have been big: DroppedNeedle now runs on BrainzMash, a public read-only MusicBrainz pool, instead of hammering the official endpoint at one request per second. In practice that means search, artist pages, and library identification are all massively faster than they were. It's community-run, free, needs no API keys, and honestly it's a fantastic thing for the music community that it exists. A few other projects like Aurral and Multi Scrobbler run on BrainzMash as well, which is great to see.

The project is coming up on a year old and I'm still working on it daily - still self-hosted, still its own library engine with no Lidarr needed. If you tried it a while back and bounced off the speed, now's a good time for another look.

For those of you new to DroppedNeedle: it combines library management, discovery, requests, downloads, and playback - in the browser or through apps like Manet and Arpeggi.

Would love for you all to give it a go. Bug reports and suggestions welcome here, on GitHub or in the Discord.

Thanks all 🙂

GitHub - code, install guide, screenshots, etc

Discord - follow along with development

submitted by /u/HabiRabbit to r/selfhosted
[link] [comments]

50-Person Construction Company: Stay With Salesforce or Switch to Zoho?

We’re a small specialized construction/pipelining company with about 50 employees, but only 3 people currently using the CRM for sales. We expect that to grow to somewhere around 5–10 sales/account management users over the next few years.

We’ve been using Salesforce for about five years.
Salesforce has gotten us through, but I can’t say we’ve ever really loved it. The person who originally helped build and customize our Salesforce environment is no longer with us, and one of our biggest frustrations is that whenever we want to make changes, adjust workflows, or improve something, we need to use a Salesforce consultant.

Recently we started looking at Zoho.

We met with a Zoho consultant and Initially got pretty excited about it. Their position was basically that there is nothing we are currently doing in Salesforce that Zoho can’t handle.

The cost difference is significant. Depending on how we structure it, we’re looking at roughly a 50–75% reduction compared with what we are currently spending.

We also liked the idea of the larger Zoho ecosystem. CRM, Books, Inventory, etc. could potentially replace several separate applications we currently pay for and bring more of the business into one system.
We were pretty much ready to move forward.
Then I made the mistake of going down the Reddit rabbit hole.

I started finding posts from people saying Zoho is terrible, the UI is outdated or clunky, different Zoho applications don’t work together as seamlessly as you would expect, support isn’t great, and certain products seem like they were developed and then stopped receiving much attention.

That made me pump the brakes pretty hard.
I asked our Zoho consultant specifically about the UI concerns and, as expected, they feel those concerns are overblown and that Zoho has improved considerably.

But at this point I’m having a hard time separating a good sales/demo experience from what it’s actually like to live in the software every day for the next five years.
Our CRM needs aren’t really traditional high-volume sales.

We are a specialized commercial construction contractor.

A typical process is something like:
Lead comes in → qualification → site inspection → inspection processing/deficiency report → project planning/estimating → proposal → revisions/follow-up → contract → handoff to project management/operations → project completion/closeout.

Projects can be anywhere from relatively small jobs to $500k–$1M+ construction projects, so we care more about managing the entire opportunity and customer relationship than blasting thousands of leads with automated emails.

We need good workflows, task management, project/account visibility, reporting, estimating information, document management, and clean handoffs between sales, estimating/planning, and operations.

So I’m really looking for feedback from people who have ACTUALLY used Zoho, preferably people who have used both Zoho and Salesforce.

A few questions:

Is Zoho really as capable as the consultants claim?
Are the complaints about the UI legitimate enough that users actually dislike working in it, or is it mostly people being picky about design?

Do the different Zoho applications actually work well together, or does the “one ecosystem” idea look better in a demo than it works in reality?

How difficult is Zoho to administer internally? One of our goals is to stop needing a consultant every time we want to make a relatively simple change.

For a company with only 3 CRM users today and maybe 5–10 eventually, is Salesforce simply overkill?
Has anyone left Salesforce for Zoho and regretted it? Or made the switch and been happy they did?

Would we be better off spending the money to simplify/rebuild our existing Salesforce environment instead of migrating?

We’ve even considered building our own CRM/workflow system because we haven’t found anything that feels like it fits our business perfectly, but I also understand the potential nightmare of maintaining custom software long term.

I’m open to other CRM recommendations as well.
I’m not necessarily looking for the cheapest solution. I’m looking for something we can set up correctly, our employees will actually enjoy using, we can manage internally, and we won’t be trying to replace again three years from now.

Would really appreciate feedback from business owners/admins/users who have actually lived with these systems, especially anyone who has used both Salesforce and Zoho.

What would you choose if you were in our position?

submitted by /u/jags945 to r/CRM
[link] [comments]

B*tches inicie esta semana en Grainger

B*tches inicie esta semana en Grainger

Y bueno, despues de un engorroso proceso de seleccion, he iniciado esta semana en Grainger Panama, no por palanca, ni por linkedin, fue usando la pagina de ellos, demoro? si y mucho.

y lo mas cool, estoy desde casa, rantan trabajo eso si, pero bueno, para que quiere uno un trabajo???

Cieeeerto, para seguir inflando mi jubilacion...

https://preview.redd.it/ztv74h0m9dnh1.png?width=938&format=png&auto=webp&s=87605357e75700d9752637276a3b920dba46db6e

submitted by /u/Prvt_N00b to r/Panama
[link] [comments]

Render vs Railway vs Cloudflare Workers

Which hosting platform would you pick for a small production app: Render vs Railway vs Cloudflare Workers?

I’m building something like a inventory management app and website — authenticated users, a Node/TypeScript API, PostgreSQL, background jobs/cron, and potentially a few thousand users over time.

Currently considering **Render, Railway, and Cloudflare Workers**.

For a production app where reliability, scaling, DB latency, and predictable costs matter, which one would you choose and why?

Would you recommend something else like **Fly.io, AWS, or Vercel + another backend** instead?

Curious to hear from people who’ve actually run production workloads on these.

submitted by /u/Chinglee007 to r/webdev
[link] [comments]

[PROMO] First plugin build ever - admin bar JSON-LD/schema viewer plugin. Feedback very welcome

Howdy, 'Pressers. I'm sharing this under the promo rule because it’s a free/open-source plugin out on the repository, and this is my company's first WordPress plugin release. I’d genuinely appreciate feedback from y'all.

My developer built Schema Viewer because we kept running into the same practical issue on inherited WordPress sites: structured data/schema may be present, but it is not always quick or convenient to inspect.

The project that pushed us to build it involved a client site with an older schema-viewing setup. It solved a real problem - the entire internal marketing team, and their vendors, wanted visibility into what schema was on a page - but the implementation added front-end clutter and confusion.

We wanted a cleaner version: Logged-in user clicks a button the WordPress admin bar once → sees the JSON-LD on the current page → can review/copy it without digging through source code or adding anything weird to the public front end.

What it does What it does not do
Adds an admin bar option to view JSON-LD/schema on the current page Generate or validate schema
Shows existing structured data in a cleaner way for logged-in users Replace Google’s Rich Results Test or Schema.org validation tools
Helps with support, QA, troubleshooting, and general site stewardship Try to be a full SEO plugin

Plugin link: https://wordpress.org/plugins/bipi-schema-viewer/

I’d especially appreciate feedback on:

  • whether the workflow makes sense
  • whether the output is readable/useful
  • whether the admin-bar placement feels right (or if we need an option to not show it and instead access from the dashboard)
  • anything that feels confusing in the plugin description/readme
  • whether there are obvious edge cases we should think about

Thanks in advance. This is our first plugin release, so I’m trying to learn from people who spend more time in the WordPress plugin development ecosystem than I do. Also, I hope someone finds this useful - it's made my life SO much easier as a dashboard/admin user!

submitted by /u/dnelled to r/Wordpress
[link] [comments]

1Password Alternative

Without getting into the politics of it, 1Password recently made a questionable monetary contribution to a project I cannot support.

Migrating away from 1Password feels impossible at the moment. The wife uses and enjoys it, so it’s tightly woven into everything for us. Passkeys, 2FA, you name it, it does it. Admittedly, I know so little about what’s available in this subset of the self-hosting realm since I haven’t considered moving away until recently.

Vaultwarden+Bitwarden, PassBolt, and AliasVault seem promising but again, I don’t know if they can cover the above so we can fully migrate. In the past, we’d used KeePass but that seemed dated even at that time.

Is there anything as comprehensive out there that covers all the bases?

Edit: can't comment on Android, but for iOS- as long as you have the 1Password app, Bitwarden app, and Apple Passwords app, you can export your full vault (inclusive of passkeys!) and then import into Bitwarden. If you're curious which apps have passkeys, in the 1Password app, tap search, type =, and then it should show you several prefilled options including passkeys. You can begin the export by going into 1Password's mobile settings, Advanced, Export.

submitted by /u/AnyColorIWant to r/selfhosted
[link] [comments]

My whole site went 403 error, trying to update "screen options"

Got an e-mail from my webhost that they were discontinuing service, so I went to check a domain I have live, but haven't updated in many years. http://chapter50.org/
Site worked fine, and I went to clear out over 1,000 accumulated spam comments.
After getting tired of doing it 50 at a time, I went to the "screen options" and tried to "Show 200 at a time". When I clicked, it locked up the whole page. Going back to the wp-admin page, I got a 403 error.
Now every page in the site is 403, I can't access my admin page, and after speaking with tech support at the hosting company, he acknowledged that there have been no changes to any of my hosting records.
What should I try next? What questions am I not thinking to ask?
How do I get my site back?

submitted by /u/General_Storage_2222 to r/Wordpress
[link] [comments]
❌