Broadcast a notification to a Vue page
Add broadcast to via() only after the Reverb page is in place. Do not open a second Echo client.
Add broadcast to via() only after the Reverb page is in place. Do not open a second Echo client.
via() can return mail and database. The Vue bell reads the database row. It does not read the mailable.
MassPrunable deletes rows that match prunable(). Schedule model:prune. Do not point that scope at users.
schedule:list shows the next time. It does not store a last run. Write a timestamp from the command if the Vue page needs one.
queue:failed-table stores the failure. An admin page may show the name and the time. It does not show the payload.
queue:work is the long-running worker. queue:listen reloads your code each job and is the local command.
chunkById walks a table in a job. Do not chunk() an update, and do not do this work inside the HTTP request.
max:2048 on a file is 2 MB. PHP can reject the upload first, and Laravel then looks like the field was empty.
temporaryUrl gives Vue a short link to a private object. Do not make the bucket public to fix an img tag.
storage:link maps public/storage to storage/app/public. Laravel Cloud does not keep that symlink.
streamDownload writes the CSV. The button is an anchor, not an Inertia Link. cursor() keeps the memory flat.
temporarySignedRoute belongs in the mail. The Vue page opens after the signed middleware passes.
Newsletter
One short email with new guides, release notes worth reading and hand-picked community links. No spam, unsubscribe any time.