/** * Creates a new Clients . * * @return Response */ public function create_new_client() { /* creates new client for both cedula and other */ $client = Clients::create(Input::all()); //calling client model statically if ($client) { echo 1; } else { echo 0; } }