@doefom@mastodon.social
@doefom@mastodon.social avatar

doefom

@doefom@mastodon.social

I’ve been a web developer for years now and built tons of stuff in the web. Most of it I never finish but when I do, I get 0 users 👍

Laravel, Statamic, Livewire, Tailwind, Alpine

This profile is from a federated server and may be incomplete. Browse more on the original instance.

doefom, to php
@doefom@mastodon.social avatar

8.4 introducing "Property Hooks". This means you will be able to hook into the default read and write behavior of your class properties. The design also allows for more hooks in the future. Really looking forward to this one!

Read more about this feature in the RFC:
https://wiki.php.net/rfc/property-hooks

doefom, to Laravel
@doefom@mastodon.social avatar

Using the "Higher Order Messages" of #Laravel can save you some code. The following examples all filter for published posts in three different ways. I'm not yet sure which way I like the most. Probably (2) and (3).

doefom, to Laravel
@doefom@mastodon.social avatar

Does Google index my web application when using #Laravel with #inertiajs (no SSR)? I read articles that say it doesn't, I read articles that say JS is no longer an issue for Google. What's true? Or can there even be a clear answer here?

doefom, to Laravel
@doefom@mastodon.social avatar

models can use casts to transform a value when either getting or setting it. In this case I use this feature to remove id, class and style attributes from an HTML string while I want to keep the other ones.

doefom, to Laravel
@doefom@mastodon.social avatar

That's by far the shortest @statamic addon I have ever coded, fitting on one single screenshot. It's a wrapper of the package "browser-detect" by "hisorange". You can use it to find out all sorts of stuff about the requesting browser and device or render content for specific devices only.

Original package: https://github.com/hisorange/browser-detect

My Statamic wrapper:
https://statamic.com/addons/doefom/statamic-browser-detect

Screenshot of template code using the antlers templating language of the Statamic framework. It shows conditional statements that check if the browser is a mobile device or print the device type.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • mdbf
  • everett
  • DreamBathrooms
  • Durango
  • magazineikmin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • vwfavf
  • khanakhh
  • kavyap
  • megavids
  • ngwrru68w68
  • cubers
  • modclub
  • tester
  • InstantRegret
  • ethstaker
  • tacticalgear
  • normalnudes
  • cisconetworking
  • anitta
  • GTA5RPClips
  • Leos
  • JUstTest
  • All magazines