Files
blog/routes/api.php
Daniel Cortés 23942616f7 Cosas .w.
2019-06-16 22:17:26 -04:00

11 lines
206 B
PHP

<?php
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();
});