Cosas .w.

This commit is contained in:
Daniel Cortés
2019-06-16 22:17:26 -04:00
parent 141d7eb729
commit 23942616f7
2 changed files with 14 additions and 1 deletions

View File

@@ -3,5 +3,8 @@
use Illuminate\Http\Request;
Route::get('/users', function() {
if(rand(1, 10) < 3) {
abort(500, 'We could not retrieve the users');
}
return factory('App\User', 10)->make();
});