This error is there because we don’t have any data in the Profile table which means Profile::all() will produce an empty array []. And if Profile::all() will produce an empty array, then there will definitely be no data at Profile:all[0].
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.