php

Back Open Paginator
25.12.2025 15:17
jclermont (@jclermont@phpc.social)

Did you ever notice that Eloquent doesn't escape the percent sign in LIKE queries? Don't worry. It's not a security hole. In fact, it unlocks a useful feature you might not have considered. #php #laravel masteringlaravel.io/daily/2025




Show Original Post


25.12.2025 14:26
backpackforlaravel (@backpackforlaravel@mstdn.social)

#PHP Tip

Did you know... You can destructure arrays directly in the right-hand part of a foreach loop!

Give it a shot for cleaner and more readable code!





Show Original Post


25.12.2025 13:32
danielpetrica (@danielpetrica@infosec.exchange)

Continuing on the trend of why I love to use Enums in #PHP, here are some nice usages I like:
First I do not have to calculate the duration of TTLs anymore, Instead I have this beautiful TTLEnum, with all the standard duration I need in my code for cache handling.
Functions can accept strict TTLEnum types and ensure valid values.
I can read my code and understand the cache duration very fast without needing comments.
#Laravel





Show Original Post


25.12.2025 12:31
alcea (@alcea@infosec.exchange)
As for "will there ever be a " #Python ~Cea" week"
?

You can answer that yourself.
I boot my #Laptop as little as I need to..

I just like #JS n #PHP more
:blobcatsnuggle:

https://ibb.co/LXqBbLw8
https://i.ibb.co/B57vdXDt/Does-Cea-Like-Python.jpg

#CodeAlcea
#repost •acws #acws



Show Original Post


25.12.2025 11:10
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

Switch Type Juggling

PHP switch statements use loose comparison! See how '1' matches case 1. This trap catches even experienced developers!

youtube.com/watch?v=Au8lBWRj0tY




Show Original Post


25.12.2025 09:18
decompwlj (@decompwlj@mathstodon.xyz)

A065108: Numbers expressible as a product of Fibonacci numbers

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A065108.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0651
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


25.12.2025 09:12
decompwlj (@decompwlj@mathstodon.xyz)

A064702: Numbers such that additive and multiplicative digital roots coincide

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A064702.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0647
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


25.12.2025 09:02
norbert (@norbert@phpc.social)

A top request with reports? Saving them as XLSX files. That's why we taught Flow #PHP to master #Excel.

flow-php.com/documentation/com

Marry Christmas Everyone! 🎄🎁




Show Original Post


25.12.2025 05:55
decompwlj (@decompwlj@mathstodon.xyz)

A064700: Numbers k that are divisible by the multiplicative digital root of k

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A064700.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0647
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


25.12.2025 05:47
decompwlj (@decompwlj@mathstodon.xyz)

A064437: a(1)=1, a(n) = a(n-1) + 3 if n is already in the sequence, a(n) = a(n-1) + 2 otherwise

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A064437.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0644
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


24.12.2025 23:56
minus (@minus@nanao.cybtex.fr)

La possession de l'APP_KEY sur une application Livewire en v3 ou supérieure permet d'avoir un contrôle complet.

De plus, plusieurs APP_KEY sont des valeurs par défaut sur des milliers d'app Laravel exposées publiquement.

L'équipe Livewire considère l’exposition de l'APP_KEY comme une frontière de sécurité suffisante. Or, compte tenu de la fréquence des fuites ou de l'utilisation de valeurs par défaut d'APP_KEY dans la nature, cette position semble sous-estimer les risques réels.




Show Original Post


24.12.2025 23:33
SenseException (@SenseException@phpc.social)

Yeah, I know. #PHP will still be dead in a decade or two.




Show Original Post


1 ...237 238 239 240 241 242 243 244 245 246 247 ...527
UP