Open shaedrich opened 9 months ago
While in the API documentation, it only says Model> in the exception section of the Builder::sole() method, its source code shows, it actually has a generic: \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
Model>
Builder::sole()
\Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
https://github.com/laravel/framework/blob/d65ea42dbec9137b94c2793b5fe06e75e8998764/src/Illuminate/Database/Eloquent/Builder.php#L645-L661
(Originally reported as https://github.com/laravel/framework/issues/49907)
Hi @shaedrich Thank you for taking the time to report this issue, I will keep it in mind and will try to fix it. Contributions are very welcome !
While in the API documentation, it only says
Model>
in the exception section of theBuilder::sole()
method, its source code shows, it actually has a generic:\Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
https://github.com/laravel/framework/blob/d65ea42dbec9137b94c2793b5fe06e75e8998764/src/Illuminate/Database/Eloquent/Builder.php#L645-L661
(Originally reported as https://github.com/laravel/framework/issues/49907)