> Notes from the wire. Real systems, real bugs, real fixes. Laravel, Next.js, Docker, Redis, và những thứ production dạy bạn lúc 3am.
class UserService { public function __invoke(UserRepo $repo){ return $repo->findActive(); } }
export default async function Page() { const data = await fetch(API).then(r=>r.json()); return}
const count = ref(0) const double = computed(() => count.value * 2) watch(count, n => console.log(n))
$token = JWTAuth::fromUser($user); return response()->json([ class="s">"token" => $token ]);
const store = create((set) => ({ count: 0, inc: () => set(s => ({ count: s.count+1 })) }))
services:
app:
build: .
ports: [class="s">"3000:3000"]
depends_on: [db]await redis.set(class="s">"key", class="s">"value", class="s">"EX", 60); const v = await redis.get(class="s">"key");
query Feed($limit: Int!) { posts(limit: $limit) { id title } }