Önbellek ayarları: not 22
Önbellek ayarları üzerine kısa bir demo yazısı.
Önbellek ayarları üzerine kısa bir demo yazısı.
25/posts/kOOp with HASHIDS_SALTonbellek-ayarlari-not-22, also reachable at /blog/onbellek-ayarlari-not-22 (301 to the canonical URL)
HashidsManager with the salt "this is my salt" encodes [1, 2, 3] as
laHquq, exactly like PHP's
(new Hashids('this is my salt'))->encode(1, 2, 3), so ids stay valid when an application moves
from PHP to Rust.
// GET /posts/{post}, {post} is a Sqids id
pub async fn show(Bound(post): Bound<Encoded<Post>>) ..
// Breadcrumbs with the loaded title, plus JSON-LD in <head>
breadcrumbs.generate("post", &Params::new().with("title", &post.title))?
// The body is purified when stored and again when shown
{{ post.body|purify("blog") }}
Recorded by laravel-revisionable from the model's Updated events.
No changes yet. Edit the post to start its history.
Available for new projects
I am Özkan Özcan. I ported, tested and published every package in this demo, and I can do the same for your code: