app/app/Controllers/Api/UsersController.php
/**
	 * Display a listing of the resource.
	 *
	 * @return Response
	 */
Display a listing of the resource.
@return Response
Display a listing of the resource . @return Response
public function index()
	{
		$this->user
				->whereSearch(Request::has('q') ? explode('-', Str::slug(Request::get('q'))) : [])
				->fields(array_filter(explode(',', Request::get('fields'))));
			return Response::json($this->user->get());
	}
public function index ( ) { $ this -> user -> whereSearch ( Request :: has ( 'q' ) ? explode ( '-' , Str :: slug ( Request :: get ( 'q' ) ) ) : [ ] ) -> fields ( array_filter ( explode ( ',' , Request :: get ( 'fields' ) ) ) ) ; return Response :: json ( $ this -> user -> get ( ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $validator = $this->queryValidator->make(Request::query()) // 	->addContext('user') //     ->bindReplacement('sort', ['fields' => 'id,username,first_name,middle_name,last_name,display_name,email,created_at,updated_at']); // if ($validator->fails()) { // 	App::abort(404); // } // ->sort(Request::get('sort', 'id'), Request::get('order', 'desc')) // ->whereCreated($dates[0], $dates[1]) // $errors = $validator->errors(); // if (Request::has('list')) { // 	$display = explode(',', Request::get('list')); // } // $tickets = $this->tickets->paginate(Request::get('per_page')); // return View::make('tickets.list', compact('tickets', 'errors'));