@taylorotwell Need detailed resource to learn more on Sanctum.
The token automatically expires at the set time even whn the user is actively interating, cn it be for inactive sessions? Also can another user use the token to access the original user's account if it leaked? Want to learn more.
My new video.
Laravel Show Download File Progress with Reverb and HTTP Client
https://t.co/22TuxJ9Y9f
This time I feel like a "messenger":
- Took a tweet from @OussamaMater
- Reproduced it and expanded to real scenario
- Asked AI to improve it and learned smth new :)
NEW: Laravel 12 starter kit from Laravel Daily!
I saw many people wanted a starter kit *with just Blade*.
Say no more!
laravel new --using=laraveldaily/starter-kit
Features:
- Functionality like Laravel Breeze but with different layout - left sidebar and colors, more like AdminLTE/CoreUI
- Three-level menu
- Blade components you can reuse and customize
- No Vue/Livewire/React, just minimal Alpine where necessary
This was actually an internal need: I wanted such starter kit for our demos, to not overwhelm the audience explaining Vue/React/Livewire with official starter kits.
Will shoot a demo video with CRUD project next week.
GitHub: https://t.co/JKCR7bwBbg
It's early version, so let me know here or on GitHub if you have any issues.
If you want to make 5 figures this year, stop whatever you're doing and pivot to Abstract.✳️
Strolling on DeFiLlama last night, I realized Abstract’s TVL is just 27M, and the 24H net bridge is < $500.
It doesn’t sound ideal, but it hints at a once-in-a-lifetime opportunity.
This is the same team that airdropped over $1.5 billion worth of $PENGU.
Getting involved in Abstract is so easy,
No need to install new RPC, and all that.
Best case, newbies don't even need a wallet to access the ecosystem.
And that's exactly what the chain is about, consumer adoption.
To tap in;
- Head to the portal - portal.abs[.]xyz
- Create and fund your AGW wallet.
Aside from providing LP, I play random games daily for fun and use my wallet for basic interactions.
(My favorite is RRC)
The goal is to earn XP and collect badges. 🛡️
If you're a streamer, apply here - creators.abs[.]xyz
Holding any of the Pudgy collection will also be one of the criteria. (but expensive)
Great opportunity for newbies.
But it's retroactive, not testnet.
S tier airdrops grow thin by the day.
If you miss out on Abstract, you have yourself to blame.
Laravel 2-in-1 tip.
Customize API Resources.
1. Add global meta: use `with()` method.
Link to the docs: https://t.co/t6TLcSGGja
- - -
2. Change *pagination* responses: override `paginationInformation()` method.
Link to the docs: https://t.co/zd1pJeq6Q3
#practicalLaravelDocs
Laravel tip.
For simple multi-tenancy projects, you can auto-set the `user_id` from the logged-in user, in THREE ways:
1. In Controller
2. In Model `booted()`
3. In Observer
Which one do you prefer?
P.S. I've started re-shooting VIDEOS for my Laravel multi-tenancy course.
Boost Laravel Performance:
My Query Runs 30s Faster!
I replaced `whereNotIn()` with `leftJoin()`
- and my query ran 30 seconds faster.
The table I was searching for had 800k+ records.
Here are 10 quick ways to optimize Laravel queries:
- Use `leftJoin()` instead of `whereNotIn()`
- Faster and more efficient.
- Replace `whereIn()` with `whereExists()`
- Saves memory.
- Select only needed columns (`select()`)
- Avoid `User::all()`.
- Process large data in chunks (`chunk()`)
- Don’t load everything at once.
- Use `pluck()` instead of `get()`
- Faster for a single column.
- Check records with `exists()` instead of `count() > 0`.
- Use `upsert()` instead of `updateOrInsert()`
- Fewer queries.
- Paginate results (`paginate()`)
- Avoid fetching all data.
- Cache frequent queries (`cache()`)
- Reduce database load.
- Avoid eager loading in loops (`load()`)
- Load relationships efficiently.
Every millisecond counts.
Small changes = big performance gains.
:)
Whenever you are less busy today, do this personal audit task. Don’t postpone it
Go to ChatGPT or grok, and paste this prompt. Share your result
I want you to act and take on the role of my brutally honest, high-level advisor.
Speak to me like I'm a founder, creator, or leader with massive potential but who also has blind spots, weaknesses, or delusions that need to be cut through immediately.
I don't want comfort. I don't want fluff. I want truth that stings, if that's what it takes to grow.
Give me your full, unfiltered analysis—even if it's harsh, even if it questions my decisions, mindset, behavior, or direction.
Look at my situation with complete objectivity and strategic depth. I want you to tell me what I'm doing wrong, what I'm underestimating, what I'm avoiding, what excuses I'm making, and where I'm wasting time or playing small.
Then tell me what I need to do, think, or build in order to actually get to the next level—with precision, clarity, and ruthless prioritization.
If I'm lost, call it out.
If I'm making a mistake, explain why.
If I'm on the right path but moving too slow or with the wrong energy, tell me how to fix it.
Hold nothing back.
Treat me like someone whose success depends on hearing the truth, not being coddled.