Overview
The notifications system allows admins and instructors to post announcements that appear on the home page for all users or specific classes.Creating notifications
As an admin or instructor
- Navigate to Notifications in the main menu
- Click Create New Notification
- Fill in the notification details:
- Title: Short headline for the notification
- Description: Brief summary (shown in listing)
- Text: Full notification content (supports HTML)
- Click Publish
Notification structure
The notification headline displayed prominently
A brief summary shown in the notification list
Full notification body (supports HTML formatting)
User ID of the notification creator
User ID of the last person to edit the notification
Managing notifications
Editing notifications
- Go to Notifications
- Click Edit on the notification
- Update the content
- Click Save
last_author field tracks who made the most recent edit.
Deleting notifications
- Open the notification
- Click Delete
- Confirm deletion
Notification display
Home page
Notifications appear at the top of the home page:- Most recent notifications shown first
- Title and description visible in list
- Click to expand and read full text
- Author name displayed with timestamp
Formatting
The notification text field supports HTML:Be careful with HTML formatting - invalid HTML can break the display. Test notifications after creating them.
Common use cases
Assignment announcements
Notify students about new assignments, deadline changes, or clarifications.
System maintenance
Warn users about scheduled downtime or system updates.
Course updates
Share syllabus changes, office hours, or exam schedules.
Platform help
Provide tips for using Wecode features or troubleshooting common issues.
Permissions
| Action | Admin | Head Instructor | Instructor | Student |
|---|---|---|---|---|
| Create notification | ✓ | ✓ | ✓ | ✗ |
| Edit own notification | ✓ | ✓ | ✓ | ✗ |
| Edit any notification | ✓ | ✓ | Limited | ✗ |
| Delete notification | ✓ | ✓ | Own only | ✗ |
| View notifications | ✓ | ✓ | ✓ | ✓ |
All authenticated users can view notifications, but only instructors and admins can create them.
API reference
Model: Notification
Location:app/Models/Notification.php
Fillable fields
Relationships
Routes
| Method | URI | Action | Permission |
|---|---|---|---|
| GET | /notifications | List all notifications | Authenticated |
| GET | /notifications/create | Show create form | Instructor+ |
| POST | /notifications | Store new notification | Instructor+ |
| GET | /notifications/{id} | Show notification | Authenticated |
| GET | /notifications/{id}/edit | Show edit form | Instructor+ |
| PUT/PATCH | /notifications/{id} | Update notification | Instructor+ |
| DELETE | /notifications/{id} | Delete notification | Instructor+ |
Best practices
Writing effective notifications
Clear headline
Use descriptive titles that immediately convey the purpose: “Assignment 2 Due Tomorrow” instead of “Important Update”
Managing notification volume
- Consolidate related updates into a single notification rather than posting multiple times
- Remove outdated notifications after events pass (e.g., delete after assignment deadline)
- Prioritize important information - too many notifications can cause users to ignore them
HTML formatting tips
Examples
Assignment deadline change
System maintenance
New feature announcement
Related features
- User management - Managing user accounts and roles
- Assignments - Creating and managing assignments
- Admin guide - Administrative functions
- Instructor guide - Instructor workflows

