Chỉ cần thêm file 404.blade.php vào thư mục resources/views/errors Laravel sẽ tự bắt lỗi 404

Lỗi 500 tương tự