ModelNotFoundException constructor

ModelNotFoundException(
  1. String model, [
  2. List<Object?> ids = const <Object?>[]
])

Laravel's message: No query results for model [App\Models\User] 1 (ids comma separated), or ... [App\Models\User]. without ids.

Implementation

ModelNotFoundException(this.model, [this.ids = const <Object?>[]])
  : super(
      404,
      'No query results for model [$model]'
      '${ids.isEmpty ? '.' : ' ${ids.join(', ')}'}',
    );