use MazimezGigapayEmployee; $employee = Employee::findById('1'); //getting employee by it's id $employee->destroy(); //deletes the employee return $employees->getJson(); //return the empty Employee instance